@if (is_countable($sliders))
@foreach ($sliders as $key => $slider)
@if ($slider->image != '')
@php
$image = asset(Storage::url('public/sliders')) . '/' . $slider->image;
@endphp
@endif
{{ $slider->sub_title }}
{!! $slider->title !!}
{{ $slider->description }}
@endforeach
@endif
@foreach ($practiceAreas as $area)
@php
$icon = 'public/sections/' . $area->alias . '/' . $area->image;
if (Storage::exists($icon)) {
$icon = asset(Storage::url($icon));
} else {
$icon = null;
}
@endphp
@if ($icon)
@endif
{{ $area->sub_title }}
@endforeach
@php
$subSections = isset($sections[0]->sub_sections) ? $sections[0]->sub_sections : null;
$subSections2 = isset($sections[1]->sub_sections) ? $sections[1]->sub_sections : null;
$subSections3 = isset($sections[2]->sub_sections) ? $sections[2]->sub_sections : null;
$subSections4 = isset($sections[3]->sub_sections) ? $sections[3]->sub_sections : null;
@endphp
{{ $sections[1]['title'] }}
{!! $sections[1]['description'] !!}
@if (count($subSections2))
@foreach ($subSections2 as $item)
@endforeach
@endif
{{ $sections[2]['title'] }}
@if (count($subSections3))
@foreach ($subSections3 as $item)
@php
$photo = NULL;
if ($item->image != NULL) {
$photo = asset(Storage::url('public/sections/homepage/' . $item->image));
}
@endphp
{{ $item->description }}
{{ $item->title }}
@endforeach
@endif
@endsection