@extends('web.layouts.default') @section('content') @isset($sections[0]) @php $section0= $sections[0]; @endphp @if(isset($section0->image) && $section0->image!="") @php $image=asset(Storage::url('public/sections')).'/'.$section0->page->alias.'/'.$section0->image @endphp @else @php $image='' @endphp @endif

{{ $section0->title }}

Home{{ $section0->title }}
@endisset @isset($sections[1]) @php $section1= $sections[1]; @endphp

{{ $section1->title }}

{!! $section1->description !!}

@isset($section1->sub_sections)
@foreach($section1->sub_sections as $sub_sec)

{{ $sub_sec->title }}

{{ $sub_sec->sub_title }}
@endforeach
@endisset
@endisset @isset($sections[2]) @php $section2= $sections[2]; @endphp

{{ $section2->title }}

@isset($section2->sub_sections)
@foreach($section2->sub_sections as $sub_sec)
@if(isset($sub_sec->image) && $sub_sec->image!="") @php $image=asset(Storage::url('public/sections')).'/'.$sub_sec->page->alias.'/'.$sub_sec->image @endphp @else @php $image='' @endphp @endif

{{ $sub_sec->title }}

{!! $sub_sec->description !!}

@endforeach
@endisset
@endisset
@isset($sections[3]) @php $section3= $sections[3]; @endphp

{{$section3->title}}