Logo Logo-white
Logo Logo-white
@if (Auth::check() && Auth::user()->user_type == 3) user @elseif (Auth::check() && Auth::user()->user_type == 2) vendor @endif
    @foreach($menuList as $menu) @foreach($menu['menus'] as $item) @php $rawLink = trim($item['url']); $isFullUrl = filter_var($rawLink, FILTER_VALIDATE_URL); $menuLink = $isFullUrl ? rtrim($rawLink, '/') : rtrim(url($rawLink), '/'); $isHome = $item['url'] == '/'; $currentUrl = rtrim(Request::url(), '/'); $active = ''; if ( $currentUrl == $menuLink || (Str::contains($menuLink, 'services') && Str::contains($currentUrl, 'servicedetails')) || (Str::contains($menuLink, 'shops') && Str::contains($currentUrl, 'shop-details')) || (Str::contains($menuLink, 'products') && Str::contains($currentUrl, 'product-details')) ) { $active = 'active'; } if ($isHome && request()->routeIs(['home', 'theme'])) { $active = 'active'; } // Hide "Become a Provider" if user is logged in with type 2 (user) or 3 (provider) $hideMenu = false; if ( Auth::check() && in_array(Auth::user()->user_type, [2, 3]) && $rawLink === 'become-provider' ) { $hideMenu = true; } @endphp @if(!$hideMenu) @if(!empty($item['submenus']))
  • {{ $item['name'] }}
      @foreach($item['submenus'] as $submenu)
    • {{ $submenu['name'] }}
    • @endforeach
  • @else
  • {{ $item['name'] }}
  • @endif @endif @endforeach @endforeach
@if (!Auth::check())
{{ __('signin') }} / {{ __('signup') }}
@endif

{{ __('contact_us') }}

{{ __('phone_number') }}

{{ $companyPhoneNumber }}

{{ __('email_address') }}

{{ $companyEmail }}

{{ __('location') }}

{{ $company_address_line }}

@if (Auth::check() && Auth::user()->user_type == 3) @endif @if (!Auth::check() || (Auth::check() && Auth::user()->user_type == 3)) {{ $cartCount ?? 0 }} @endif
Language
@if ($allLanguages) @foreach ($allLanguages as $language) {{ $language->code ?? 'en' }}{{ $language->name }} @endforeach @endif
@if(Auth::check() && Auth::user()->user_type == 3) @endif @if (!Auth::check() || (Auth::check() && Auth::user()->user_type == 3)) {{ $cartCount ?? 0 }} @endif @if(Auth::check() && Auth::user()->user_type == 3)
user
{{ __('dashboard') }} {{ __('orders') }} {{ __('my_wishlist') }}
{{ __('settings') }} {{ __('logout') }}
@elseif(Auth::check() && Auth::user()->user_type == 2)
user
{{ __('dashboard') }} {{ __('orders') }}
{{ __('settings') }} {{ __('logout') }}
@else {{ __('signin') }} {{ __('signup') }} @endif