@php $pages=\App\Models\Pages::where('cancelled',0)->orderBy('orders')->get(); $viewDonation=\twa\apilibs\models\SettingsV2Model::query()->where('key','view_donation')->where('value','1')->first(); @endphp @include('includes.search') {{-- --}} {{-- --}} {{-- getLocale()=='en')selected @endif value="en">EN--}} {{-- getLocale()=='ar')selected @endif value="ar">AR--}} {{-- --}} {{-- --}} {{__('texts.support-us')}} @if(isset($viewDonation)) {{__('texts.donate')}} @endif @if(isset($pages) && count($pages)>0) @php $more=" More +"; $i=0; @endphp @foreach($pages as $page) @if($i<=6) {{$page->{'label_'.app()->getLocale()} }} @if(count($page->subPages)>0) + @endif @if(count($page->subPages)>0) @foreach($page->subPages as $sub) link=="internal") href="{{route('service',['id'=>$page->id,'slug'=>Str::slug($page->{'label_'.app()->getLocale()}) ])}}/#{{$sub->link_id}}" @else href="{{route('service-sub',['id'=>$sub->id,'slug'=>Str::slug($sub->{'label_'.app()->getLocale()}) ])}}"@endif >{{$sub->{'label_'.app()->getLocale()} }}@include('includes.right-angle') @endforeach @endif @else @php $more.=" ".$page->{'label_'.app()->getLocale()} ." ".@include('includes.right-angle')." "; @endphp @endif @php $i++ @endphp @endforeach @php $more.=""; @endphp @if(count($pages)>7) {!! $more !!} @endif @endif {{__('texts.join-community')}} {{__('texts.contact-us')}} @include('includes.search') @if(isset($viewDonation)) {{__('texts.donate')}} @endif getLocale()=='en')selected @endif value="en">EN getLocale()=='ar')selected @endif value="ar">AR @if(isset($pages) && count($pages)>0) @foreach($pages as $page) {{$page->{'label_'.app()->getLocale()} }} @endforeach @endif {{__('texts.join-community')}} {{__('texts.support-us')}} {{__('texts.contact-us')}}