@extends('web.layouts.layout') @section('content')
@include('web.pages.components.header.header') @if(isset($banner)) @if($banner->active_status)
@endif @endif
@foreach($main_categories as $key => $category)
@foreach($category->sub as $row)
id,($request->sub_category_id ?? [])) ? 'checked' : ''}} onclick="filter()" name="sub_category_id[]" type="checkbox" value="{{$row->id}}" id="cat{{$row->id}}">
@endforeach
@endforeach
@if(count($brands))

@foreach($brands as $key => $row)
brand_id ?? [])) ? 'checked' : ''}} onclick="filter()" name="brand_id[]" value="{{$key}}" id="brand{{$key}}">
@endforeach
@endif @if(count($offers))

@foreach($offers as $row)
id,($request->offer_id ?? [])) ? 'checked' : ''}} onclick="filter()" name="offer_id[]" value="{{$row->id}}" id="offer{{$row->id}}">
@endforeach
@endif

@foreach($rates as $key=>$row)
rate) ? 'checked' : ''}} name="rate" value="{{$key}}" id="rate{{$key}}">
@endforeach
{{$products->total()}} {{__('web.search_result')}} @if($category_search)
"{{$category_search}}"
@endif
{{__('web.orderBy')}}
@foreach($products as $row)
@include('web.pages.components.products.card',['product'=>$row])
@endforeach
@if(!($products->hasMorePages() == false && $products->currentPage() == 1)) @endif
@include('web.layouts.footer_banner')
@endsection @section('inject_js') @endsection