@foreach($subCategories as $subCategory)
  • {{$subCategory->name}} @if(!$subCategory->subCategories->isEmpty()) @endif @if(!$subCategory->subCategories->isEmpty()) @php $brand = request()->get('brand') ? '?brand='.request()->get('brand'): ''; $search = request()->get('search') ? '?search='.request()->get('search'): ''; @endphp @include('front.partials.subCategoryList',['subCategories' => $subCategory->subCategories, 'parentUrl' => $parentUrl.'/'.$subCategory->slug.$brand.$search]) @endif
  • @endforeach