@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 }} {{ $section1->sub_title }} @isset($section1->sub_sections) @foreach($section1->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 }} @endforeach @endisset @endisset @isset($sections[2]) @php $section2= $sections[2]; @endphp @foreach($section2->sub_sections as $key=>$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 @if(($key % 2 == 0)) {{ $sub_sec->page_type->name }} {{ $sub_sec->title }} {!! $sub_sec->description !!} @else {{ $sub_sec->page_type->name }} {{ $sub_sec->title }} {!! $sub_sec->description !!} @endif @endforeach @endisset @endsection
{{ $section1->description }}
{!! $sub_sec->description !!}