@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

    @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

    @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

    @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

    @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

    @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