@section('page_slug', 'category') @section('page_title', $category->name) @extends('layout') @section('content')
Accueil > @foreach($category->ancestors as $parentCategory) {{$parentCategory->name}} > @endforeach {{$category->name}}

{{$category->name}}

@if($category->slug == 'sneakers')
@foreach($category->childrenWithProducts as $subCategory) @if($subCategory->file) {{$subCategory->name}} @else {{$subCategory->name}} @endif @endforeach
@endif @if(!empty($filters))
@if(!empty($filters['criterionsWithOffer']['size']))
{{Form::select('filters[criterionsWithOffer][size]', $filters['criterionsWithOffer']['size'], Arr::get($selectedFilters, 'criterionsWithOffer.size'), ['class'=> 'w-full p-2', 'placeholder'=>__('firstcop.product.attribute.size')])}}
@endif @if(!empty($filters['criterions']['size']))
{{Form::select('filters[criterions][size]', $filters['criterions']['size'], Arr::get($selectedFilters, 'criterions.size'), ['class'=> 'w-full p-2', 'placeholder'=>__('firstcop.product.attribute.size')])}}
@endif @if(!empty($filters['attributes']['color']))
{{Form::select('filters[attributes][color]', $filters['attributes']['color'], Arr::get($selectedFilters, 'attributes.color'), ['class'=> 'w-full p-2','placeholder'=> __('firstcop.product.attribute.color')])}}
@endif @if(!empty($filters['attributes']['model']))
{{Form::select('filters[attributes][model]', $filters['attributes']['model'], Arr::get($selectedFilters, 'attributes.model'), ['class'=> 'w-full p-2','placeholder'=> __('firstcop.product.attribute.model')])}}
@endif
@endif @if(!empty($products)) @if($products->count() > 0)
@include('shop.product-list', ['products' => $products,'listAlign' => 'text-left'])
@else
Aucun produit ne correspond à votre recherche
@endif @endif
@endsection