@include('landing-page.components.widgets.logo')
@php $headerSection = App\Models\FrontendSetting::where('key', 'heder-menu-setting')->first(); $sectionData = $headerSection ? json_decode($headerSection->value, true) : null; $settings = App\Models\Setting::whereIn('type', ['service-configurations','OTHER_SETTING']) ->whereIn('key', ['service-configurations', 'OTHER_SETTING']) ->get() ->keyBy('type'); $serviceconfig = $settings->has('service-configurations') ? json_decode($settings['service-configurations']->value) : null; $othersetting = $settings->has('OTHER_SETTING') ? json_decode($settings['OTHER_SETTING']->value) : null; @endphp @if ($sectionData && isset($sectionData['header_setting']) && $sectionData['header_setting'] == 1)
  • {{__('landingpage.home')}}
  • @if( isset($sectionData['categories']) && $sectionData['categories'] == 1) {{-- @if(isset($sectionData['categories']) && $sectionData['categories'] == 1) --}}
  • {{__('landingpage.categories')}}
  • @endif @if( isset($sectionData['service']) && $sectionData['service'] == 1) {{-- @if(isset($sectionData['service']) && $sectionData['service'] == 1)p --}}
  • {{__('landingpage.services')}}
  • @endif @if(optional($othersetting)->blog == 1)
  • {{__('landingpage.blogs')}}
  • @endif @if($sectionData['provider'] == 1) {{-- @if(isset($sectionData['provider']) && $sectionData['provider'] == 1) --}}
  • {{__('landingpage.providers')}}
  • @endif @if(auth()->check() && auth()->user()->user_type == 'user' && $sectionData['bookings'] == 1)
  • {{__('landingpage.bookings')}}
  • @endif {{-- @if(auth()->check() && auth()->user()->user_type == 'user' && optional($serviceconfig)->post_services == 1)
  • {{__('landingpage.job_request')}}
  • @endif --}}
@endif