{{--
--}}
@yield('extra-css')
{{--
Hi-Link
--}}
@php $service_parent_categories = App\SolutionNServiceCategory::whereNull('parent_id')->select('id', 'name')->get(); $site_config = App\SiteConfig::all(); @endphp
Home
{{-- Start Service & Solution --}} @if($site_config[0]->permission == 'show_all')
Services & Solutions
@foreach ($service_parent_categories as $parent) @php $service_child_categories = App\SolutionNServiceCategory::where('parent_id', $parent->id)->select('id', 'name')->get(); $is_link_main_category_id = App\Service::where('category_id', $parent->id)->count(); @endphp @if(count($service_child_categories) > 0)
{{$parent->name}}
@foreach ($service_child_categories as $child)
{{$child->name}}
@endforeach
@else @if($is_link_main_category_id > 0)
{{$parent->name}}
@else
{{$parent->name}}
@endif @endif @endforeach
@elseif($site_config[0]->permission == 'show_customer') @role('customer')
Services & Solutions
@foreach ($service_parent_categories as $parent) @php $service_child_categories = App\SolutionNServiceCategory::where('parent_id', $parent->id)->select('id', 'name')->get(); @endphp @if($service_child_categories)
{{$parent->name}}
@foreach ($service_child_categories as $child)
{{$child->name}}
@endforeach
@else
{{$parent->name}}
@endif @endforeach
@endrole @endif {{-- End Service & Solution --}} {{-- Start Support Case --}} @role('customer')
Support Case
@endrole {{-- End Support Case --}} {{-- Start Blog --}} @if($site_config[7]->permission == 'show_all')
Customer Success Story
@elseif($site_config[7]->permission == 'show_customer') @role('customer')
Customer Success Story
@endrole @endif {{-- End Blog --}} {{-- Start About Us --}} @if($site_config[1]->permission == 'show_all')
About Us
@elseif($site_config[1]->permission == 'show_customer') @role('customer')
About Us
@endrole @endif {{-- End About Us --}} {{-- Start Contact Us --}} {{-- @if($site_config[2]->permission == 'show_all')
Contact Us
@elseif($site_config[2]->permission == 'show_customer') @role('customer')
Contact Us
@endrole @endif --}} {{-- End Contact Us --}} @role('customer')
Sign Out
@if(Auth::user()->avatar != null)
@else
@endif {{ Auth::user()->name }}
@else
Sign In
Sign Up
@endrole
@yield('content')
{{-- --}} @yield('extra-script')