@php if(!is_null($service)){ $paragraphs=getter('paragraphs')->setLang(app()->getLocale())->condition('position','=',$service->id)->orderBy('orders')->get(); $links=getter('links')->setLang(app()->getLocale())->condition('position','=',$service->id)->orderBy('orders')->get(); $subpages=getter('sub_pages')->setLang(app()->getLocale())->condition('main_page','=',$service->id)->orderBy('orders')->get(); $bemaac=getter('bemaac')->setLang(app()->getLocale())->condition('page','=',$service->id)->get(); } @endphp @extends('layouts.main',[ 'compact'=>'compact' ]) @section('title') {{$service->label}} | {{env('APP_NAME')}} @endsection @section('content')
{{$service->label}}
@if(isset($service->display_sub) && $service->display_sub==1)
@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
@endif
@if(isset($paragraphs[0])) @include('components.paragraph',['paragraph'=>$paragraphs[0]]) @endif @if(isset($links) && count($links)>0) @endif @if(isset($paragraphs) && count($paragraphs)>=2) @foreach($paragraphs as $k=> $paragraph) @if($k==0) @continue @endif @include('components.paragraph',['paragraph'=>$paragraph]) @endforeach @endif
@endsection