@if(count($locations) > 1)
  • @lang('Store'){{session('location')}}
      @foreach($locations as $location)
    • {{$location->name}}
    • @endforeach
  • @endif @if(count($brands) > 0)
  • @lang('Brands')
      @foreach($brands as $brand)
    • {{$brand->name}}
    • @endforeach
  • @endif @if(count($root_categories) > 0) @foreach($root_categories as $category) @if($category->is_active)
  • {{$category->name}} @if($category->categories()->where('show_in_menu', true)->count()) @include('partials.front.sub-categories', ['childs' => $category->categories()->where('show_in_menu', true)->orderBy('priority', 'asc')->get()]) @endif
  • @endif @endforeach @endif @if(count($deals) > 0) @foreach($deals as $deal)
  • {{$deal->name}}
  • @endforeach @endif @if(count($pages) > 0) @foreach($pages as $page)
  • {{$page->title}}
  • @endforeach @endif
    @if(count($locations) > 1)
  • Store{{session('location')}}
      @foreach($locations as $location)
    • {{$location->name}}
    • @endforeach
  • @endif @if(count($brands) > 0)
  • @lang('Brands')
      @foreach($brands as $brand)
    • {{$brand->name}}
    • @endforeach
  • @endif @if(count($root_categories) > 0) @foreach($root_categories as $category) @if($category->is_active)
  • @if($category->categories()->where('show_in_menu', true)->count()) {{$category->name}}
      @if($category->photo)
    • {{$category->name}}
    • @endif @foreach($category->categories()->where('show_in_menu', true)->orderBy('priority', 'asc')->get() as $sub_category) @if($sub_category->is_active)
      • {{$sub_category->name}}
      • @if($sub_category->categories()->where('show_in_menu', true)->count()) @foreach($sub_category->categories()->where('show_in_menu', true)->orderBy('priority', 'asc')->get() as $sub_sub_category) @if($sub_sub_category->is_active)
      • {{$sub_sub_category->name}}
      • @endif @endforeach @endif

    • @endif @endforeach
    @else {{$category->name}} @endif
  • @endif @endforeach @endif @if(count($deals) > 0) @foreach($deals as $deal)
  • {{$deal->name}}
  • @endforeach @endif @if(count($pages) > 0) @foreach($pages as $page)
  • {{$page->title}}
  • @endforeach @endif