@php if(!is_null($page) && !is_null($id)){ $paragraphs=getter('paragraphs')->setLang(app()->getLocale())->condition('position','=','bem-'.$page)->orderBy('orders')->get(); $bemaac=getter('bemaac')->setLang(app()->getLocale())->condition('id','=',$id)->get(); $subpages=getter('sub_pages')->setLang(app()->getLocale())->condition('main_page','=',$page)->get(); $page=getter('pages')->setLang(app()->getLocale())->condition('id','=',$page)->get(); } @endphp @extends('layouts.main',[ 'compact'=>'compact' ]) @section('title') @if(isset($page->label)){{$page->label}} @endif | {{env('APP_NAME')}} @endsection @section('content')
@if(isset($page->label)){{$page->label}} @endif
{{-- The Lebanese Ministry of Culture Collection--}} {{-- --}} @if(isset($subpages) && count($subpages)>0) @foreach($subpages as $sub) @if($sub->link=='internal') {{$sub->label}} @else {{$sub->label}} @endif @endforeach @endif @if(isset($bemaac) && isset($bemaac->id)) BEMAAC @endif
@if(isset($paragraphs) && count($paragraphs)>0) @foreach($paragraphs as $paragraph) @include('components.paragraph',['paragraph'=>$paragraph,'looping'=>1]) @endforeach @endif
@endsection