@extends('layouts.web') @section('content') @php $queryStr['category']=$category->alias; @endphp @if($search) @php $queryStr['search']=$search; @endphp @endif @if($color_filter) @php $queryStr['color']=$color_filter; @endphp @endif @if($silhouette_filter) @php $silStr=implode(',',$silhouette_filter); $queryStr['silhouette']=$silStr; @endphp @endif @if($price_filter) @php $queryStr['price']=$price_filter; @endphp @endif @if($brand_filter) @php $brandStr=implode(',',$brand_filter); $queryStr['brand']=$brandStr; @endphp @endif @isset($size_filter) @php $queryStr['size']=$size_filter; @endphp @endisset @if($season_filter) @php $seasonStr=implode(',',$season_filter); $queryStr['season']=$seasonStr; @endphp @endif @if($neckline_filter) @php $necklineStr=implode(',',$neckline_filter); $queryStr['neckline']=$necklineStr; @endphp @endif @if($fabric_filter) @php $fabricStr=implode(',',$fabric_filter); $queryStr['fabric']=$fabricStr; @endphp @endif @include('products.filter') Home> Products Filter Filter Best Selling Price, Low to High Price, high to low @isset($filters['color']) @php $colorArr=$queryStr; unset($colorArr['color']); @endphp {{$color_filter}} @endisset @isset($filters['silhouette']) @foreach($filters['silhouette'] as $sil_filter) @php $key = array_search(nameToAlias($sil_filter), $silhouette_filter); @endphp @if ($key !== false) @php $silFilterVal=$silhouette_filter; unset($silFilterVal[$key]); $silArr=$queryStr; @endphp @if(count($silFilterVal)>0) @php $silArr['silhouette']=implode(',',$silFilterVal); @endphp @else @php unset($silArr['silhouette']); @endphp @endif @endif {{$sil_filter}} @endforeach @endisset @isset($filters['season']) @foreach($filters['season'] as $sea_filter) @php $key = array_search(nameToAlias($sea_filter), $season_filter); @endphp @if ($key !== false) @php $seaFilterVal=$season_filter; unset($seaFilterVal[$key]); $seaArr=$queryStr; @endphp @if(count($seaFilterVal)>0) @php $seaArr['season']=implode(',',$seaFilterVal); @endphp @else @php unset($seaArr['season']); @endphp @endif @endif {{$sea_filter}} @endforeach @endisset @isset($filters['neckline']) @foreach($filters['neckline'] as $nec_filter) @php $key = array_search(nameToAlias($nec_filter), $neckline_filter); @endphp @if ($key !== false) @php $necFilterVal=$neckline_filter; unset($necFilterVal[$key]); $necArr=$queryStr; @endphp @if(count($necFilterVal)>0) @php $necArr['neckline']=implode(',',$necFilterVal); @endphp @else @php unset($necArr['neckline']); @endphp @endif @endif {{$nec_filter}} @endforeach @endisset @isset($filters['fabric']) @foreach($filters['fabric'] as $fab_filter) @php $key = array_search(nameToAlias($fab_filter), $fabric_filter); @endphp @if ($key !== false) @php $fabFilterVal=$fabric_filter; unset($fabFilterVal[$key]); $fabArr=$queryStr; @endphp @if(count($fabFilterVal)>0) @php $fabArr['fabric']=implode(',',$fabFilterVal); @endphp @else @php unset($fabArr['fabric']); @endphp @endif @endif {{$fab_filter}} @endforeach @endisset @isset($filters['brand']) @foreach($filters['brand'] as $bran_filter) @php $key = array_search(nameToAlias($bran_filter), $brand_filter); @endphp @if ($key !== false) @php $branFilterVal=$brand_filter; unset($branFilterVal[$key]); $branArr=$queryStr; @endphp @if(count($branFilterVal)>0) @php $branArr['brand']=implode(',',$branFilterVal); @endphp @else @php unset($branArr['brand']); @endphp @endif @endif {{$bran_filter}} @endforeach @endisset @isset($filters['price']) @php $priceArr=$queryStr; unset($priceArr['price']); @endphp {{$filters['price']}} @endisset @isset($filters['size']) @php $sizeArr=$queryStr; unset($sizeArr['size']); @endphp Size-{{$size_filter}} @endisset @if(count($filters)>0) Clear ALL @endif By Designer @php $filterBrandArr=[]; @endphp @isset($brand_filter) @php $filterBrandArr=$brand_filter; @endphp @endisset @foreach($brands as $brand) @php $brandArr=$queryStr; $brandStr=$brand_filter; @endphp @if(!in_array(nameToAlias($brand->name),$brand_filter)) @php $brandFilter=nameToAlias($brand->name); $brandStr[]=$brandFilter; @endphp @endif @php $brandStr=implode(',',$brandStr); $brandArr['brand']=$brandStr; @endphp {{ $brand->name }} name),$filterBrandArr) ? 'checked' : '' !!}> @endforeach By Seasons @php $filterSeasonArr=[]; @endphp @isset($season_filter) @php $filterSeasonArr=$season_filter; @endphp @endisset @foreach($seasons as $season) @php $seasonArr=$queryStr; $seasonStr=$season_filter; @endphp @if(!in_array(nameToAlias($season->name),$season_filter)) @php $seasonFilter=nameToAlias($season->name); $seasonStr[]=$seasonFilter; @endphp @endif @php $seasonStr=implode(',',$seasonStr); $seasonArr['season']=$seasonStr; @endphp {{ $season->name }} name), $filterSeasonArr) ? 'checked' : '' !!}> @endforeach Price Size @php $filterSizeArr=[]; @endphp @isset($filters['size']) @php $filterSizeArr=$filters['size']; @endphp @endisset @foreach($sizes as $size) @php $sizeArr=$queryStr; $sizeArr['size']=$size->size; @endphp {{$size->size}} size===$filterSizeArr) ? 'checked' : '' !!}> @endforeach Color @php $filterColorArr=''; @endphp @isset($filters['color']) @php $filterColorArr=$filters['color']; @endphp @endisset @foreach($colors as $color) @php $colorImg=asset(Storage::url('public/colors/'.$color->image)); $colorArr=$queryStr; $colorArr['color']=$color->alias; @endphp {{ $color->name }} name==$filterColorArr) ? 'checked' : '' !!}> {{$filterColorArr}} @endforeach By Style @php $filterSilArr=[]; @endphp @isset($silhouette_filter) @php $filterSilArr=$silhouette_filter; @endphp @endisset @foreach($silhouettes as $silhouette) @php $silArr=$queryStr; $silStr=[]; $silStr=$silhouette_filter; @endphp @if(!in_array(nameToAlias($silhouette->name),$silhouette_filter)) @php $silhFilter=nameToAlias($silhouette->name); $silStr[]=$silhFilter; @endphp @endif @php $silStr=implode(',',$silStr); $silArr['silhouette']=$silStr; @endphp {{$silhouette->name}} name),$filterSilArr) ? 'checked' : '' !!}> @endforeach By Fabric @php $filterFabricArr=[]; @endphp @isset($fabric_filter) @php $filterFabricArr=$fabric_filter @endphp @endisset @foreach($fabrics as $fabric) @php $fabricArr=$queryStr; $fabricStr=$fabric_filter; @endphp @if(!in_array(nameToAlias($fabric->name),$fabric_filter)) @php $fabricFilter=nameToAlias($fabric->name); $fabricStr[]=$fabricFilter; @endphp @endif @php $fabricStr=implode(',',$fabricStr); $fabricArr['fabric']=$fabricStr; @endphp {{ $fabric->name }} name),$filterFabricArr) ? 'checked' : '' !!}> @endforeach By Neckline @php $filterNecklineArr=[]; @endphp @isset($neckline_filter) @php $filterNecklineArr=$neckline_filter @endphp @endisset @foreach($necklines as $neckline) @php $necklineArr=$queryStr; $necklineStr=$neckline_filter; @endphp @if(!in_array(nameToAlias($neckline->name),$neckline_filter)) @php $necklineFilter=nameToAlias($neckline->name); $necklineStr[]=$necklineFilter; @endphp @endif @php $necklineStr=implode(',',$necklineStr); $necklineArr['neckline']=$necklineStr; @endphp {{ $neckline->name }} name),$filterNecklineArr) ? 'checked' : '' !!}> @endforeach @if($products->count()>0) @include('products.listing') @else No Record! @endif @endsection @push('scripts') @endpush