@extends('web.layouts.layout') @section('content') @include('web.pages.components.header.header') @if(isset($banner)) @if($banner->active_status) @for($i=0;$i<$banner->count_photo;$i++) photos[$i]->link) href="{{$banner->photos[$i]->link}}" target="_blank" @endif class="banner d-block h-100"> @endfor @endif @endif {{__('web.sub_categories')}} {{-- مسح --}} @foreach($main_categories as $key => $category) {{$category->title}} @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}}"> {{$row->currentDescription->title}} @endforeach @endforeach @if(count($brands)) {{__('web.brand')}} @foreach($brands as $key => $row) brand_id ?? [])) ? 'checked' : ''}} onclick="filter()" name="brand_id[]" value="{{$key}}" id="brand{{$key}}"> {{$row['title']}} ({{$row['count']}}) @endforeach @endif @if(count($offers)) {{__('web.offers')}} @foreach($offers as $row) id,($request->offer_id ?? [])) ? 'checked' : ''}} onclick="filter()" name="offer_id[]" value="{{$row->id}}" id="offer{{$row->id}}"> {{$row->title}} ({{$row->count_products}}) @endforeach @endif {{__('web.rate_product')}} @foreach($rates as $key=>$row) rate) ? 'checked' : ''}} name="rate" value="{{$key}}" id="rate{{$key}}"> @for($i = 0 ; $i < $key;$i++) @endfor @for($i = 0 ; $i < (5-$key);$i++) @endfor {{$key}} ({{$row}}) @endforeach {{$products->total()}} {{__('web.search_result')}} @if($category_search) "{{$category_search}}" @endif {{__('web.orderBy')}} @foreach($orderBy_status as $row) orderBy == $row) ? 'selected' : ''}} value="{{$row}}"> {{__('web.ordetByStatus.'.$row)}} @endforeach @foreach($products as $row) @include('web.pages.components.products.card',['product'=>$row]) @endforeach @if(!($products->hasMorePages() == false && $products->currentPage() == 1)) @if (!$products->onFirstPage()) {{__('web.previous')}} @endif @foreach ($products->getUrlRange(1, $products->lastPage()) as $page => $url) {{ $page }} @endforeach @if ($products->hasMorePages()) {{__('web.next')}} @endif @endif @include('web.layouts.footer_banner') @endsection @section('inject_js') @endsection