@extends('layouts.front') @section('page_title') @parent @if($brand->metatitle) {{$brand->metatitle}} @else {{$brand->title}} @endif @endsection @section('head-js') @stop @section('meta') @php $canonicalUrl = url('/shop/brand/'.$brand->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 === 'category' && 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') {{$brand->metatitle}} خانه فروشگاه {{$brand->title}} @include('frontends.errors') {!! Form::open(['url'=>'/shop/ajax-shop','id'=>'ajax-shop','method'=>'POST']) !!} مرتب سازی : پرفروش ترین پربازدیدترین جدیدترین ارزان ترین گران ترین پرتخفیف ترین فیلترها فیلترها @include('includes.shopsidemobile') @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 {{$product->title}} @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() !!} @stop @section('js') @stop