@extends('front.layout') @section('content')
@if(count($produits)>0)
back

Catégories

@foreach($categories as $category) @if($category->id==1) @foreach($category->children as $cats)

{{$cats->translate($locale)->name}}

@endforeach @endif @endforeach
@foreach($attributs as $attribut) @if(count($attribut->AttributOptions)>0) @if($attribut->type==2)

{{$attribut->translate($locale)->name}}

    @foreach($attribut->AttributOptions as $attributOption)
  • @endforeach
@else

{{$attribut->translate($locale)->name}}

@foreach($attribut->AttributOptions as $attributOption)
@endforeach
@endif @endif @endforeach
Filter
@foreach($produits as $newcollection) @php $tab=[] @endphp
@php $img_survol='' @endphp @foreach($newcollection->images as $image) @if($image->defaut==1) @php $img=$image->image_name @endphp @endif @if($image->survol==1) @php $img_survol=$image->image_name @endphp @endif @endforeach
@if(!empty($img_survol))
@endif @php $tab=[] @endphp @php $price=$newcollection->prixttc; $repture =1; @endphp @if($newcollection->stock>0 && $newcollection->type==1) @php $repture =0 @endphp @endif @if($newcollection->type==2) @foreach($newcollection->stocks as $stock) @if($stock->stock>0) @php $repture =0 @endphp @endif @if(count($stock->declinaisons)==1) @php $price=$stock->prixttc @endphp @endif @foreach($stock->declinaisons as $declinaison) @php $att= $declinaison->attributoption->attribut->id @endphp @php $valeur=$declinaison->valeur; @endphp @if($att==1) @php $valeur= $declinaison->attributoption->couleur @endphp @endif @php $tab[$att][$declinaison->attribut_option_id]=$valeur; @endphp @endforeach @endforeach @endif @php $tab_taille=[] @endphp @if(isset($tab[2]) ) @php $tab_taille=$tab[2] @endphp @endif @if(isset($tab[3])) @php $tab_taille=$tab[3] @endphp @endif
@php $cls="col-md-12" @endphp @if(count($tab_taille)>0) @php $cls="col-md-4 ps-0" @endphp
@endif @if($repture==1)
@else
@endif
{{$newcollection->translate($locale)->name}}
{{$newcollection->translate($locale)->description}}

{{$price}} {{$devise}}

    @php $c=0 @endphp @if(isset($tab[1]) ) @foreach($tab[1] as $ind=>$couleur) @php $c++ @endphp
  • @endforeach @endif
@endforeach
@else
Aucun produit pour le moment.
@endif
@endsection