@extends('layouts.front') @section('page_title') @parent @if($cat->metatitle) {{$cat->metatitle}} @else {{$cat->title}} @endif @endsection @section('meta') @php $canonicalUrl = url('/shop/category/'.$cat->slug); $queryParams = request()->except('page'); $validParams = collect(request()->all()) ->filter(function($value, $key) { if(in_array($key,['available','off','soonexpire','filter','keyword','minprice','maxprice'])){ return !empty($value); } if($key === 'brand' && is_array($value)){ return count(array_filter($value)) > 0; } return false; })->toArray(); if(count($validParams)){ $canonicalUrl .= '?'.http_build_query($validParams); } $currentPage = $products->currentPage(); @endphp @if($currentPage == 1) @if($products->lastPage() > 1) @endif @elseif($currentPage == $products->lastPage()) @else @endif @stop @section('main')
@if(count($childs) > 0 )
@endif
@include('frontends.errors')
{!! Form::open(['url'=>'/shop/ajax-shop','id'=>'ajax-shop','method'=>'POST']) !!}
فیلترها
@if(count($products) > 0)
@foreach($products as $product)
thumbnails) src="{{asset($product->thumbnails)}}" @endif alt="{{$product->title}}" onerror="this.src='/no-image-available.jpg';" loading="lazy">
@if($product->avacheck) @if($product->salesprice)
{{round((1-($product->salesprice / $product->price))*100)}} %
@endif @else
ناموجود
@endif
@if(@$chekcprice && $defaultset->minfreeshipping) @if(@$chekcprice>= $defaultset->minfreeshipping)
ارسال رایگان
@endif @endif
@if($product->price) @if($product->salesprice)
{{number_format($product->price, 0)}} {{number_format($product->salesprice, 0)}} تومان
@else
{{number_format($product->price, 0)}} تومان
@endif @endif
@endforeach
@else
هیچ محصول یافت نشد

هیچ محصولی یافت نشد

@endif
{!! $products->links('includes.pagination') !!}
{!! Form::close() !!}
@if($cat->descr)
{!! $cat->descr !!}
نمایش بیشتر
@endif
@stop @section('js') @stop