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

Catégories

@if($action=='index') @foreach($cats as $category) @if($category->id==1) @foreach($category->children as $cats)

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

ParentCategories->id != $cats->id) || $page=='promotion') style="display: none" @endif >
@foreach($cats->children as $cat)
id==$categorie->id) checked @endif type="checkbox" class="check-cat form-check-input " name="categories_id[]" id="hundred" value="{{$cat->id}}">
@endforeach
@endforeach @endif @endforeach @else @foreach($cats as $category) @foreach($category->children as $cats) @if(in_array($cats->id,$catparents))

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

ParentCategories->id != $cats->id) || $page=='promotion') style="display: none" @endif >
@foreach($cats->children as $cat) @if(in_array($cat->id,$catproduits))
id==$categorie->id) checked @endif type="checkbox" class="check-cat form-check-input " name="categories_id[]" id="hundred" value="{{$cat->id}}">
@endif @endforeach
@endif @endforeach @endforeach @endif
@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
@if($newcollection->newcollection==1)
New
@endif
@php $img_survol='' ; $img=$newcollection->images[0]->image_name; @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($newcollection->type==2) @foreach($newcollection->stocks[0]->imagedeclinaisons as $imagedec) @if($imagedec->defaut==1) @php $img=$imagedec->image->image_name @endphp @endif @if($imagedec->survol==1) @php $img_survol=$imagedec->image->image_name @endphp @endif @endforeach @endif
@if(!empty($img_survol))
@endif @php $tab=[]; $tabcouleur=[]; @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; $tabcouleur[$declinaison->attribut_option_id]=$declinaison->valeur ; @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}}

{{$price}}
    @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