@extends('front.layout') @section('content') @php $tab=[] @endphp @foreach($produit->stocks as $stock) @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
@foreach($produit->stocks as $stk) @foreach($stk->imagedeclinaisons as $imagedec) @if($imagedec->image_couleur==1)
@endif @endforeach @endforeach
@php $comp=0 @endphp @foreach($produit->stocks as $stk) @foreach($stk->imagedeclinaisons as $imagedec) @if($imagedec->image_couleur==1)
@php $comp++ @endphp @endif @endforeach @endforeach

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

@if($produit->newcollection==1) New @endif {{$produit->categorieproduits[0]->Categorie->translate($locale)->name}}
@if(count($promotion)==1 && $promotion[0]->fromqte==1)

{{number_format($produit->prixttc *(1-$promotion[0]->reduction/100),3,'.',' ')}} {{$devise}} {{$produit->prixttc}} {{$devise}}ÉCONOMISEZ {{$promotion[0]->reduction}}%

@else

{{$produit->prixttc}}{{$devise}}

@endif
{{$produit->prixttc}}
@if(!empty($produit->translate($locale)->description))
{!! Helper::traducteurs(46) !!}
{!! $produit->translate($locale)->description !!}
@endif
    @php $c=0 @endphp @foreach($tab[1] as $ind=>$couleur) @php $c++ @endphp
  • @endforeach
@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
@if(count($tab_taille)>0)
{!! Helper::traducteurs(40) !!}
    @foreach($tab_taille as $ind=>$taille)
  • {{$taille}}
  • @endforeach
{!! Helper::traducteurs(40) !!}
@endif
{!! Helper::traducteurs(45) !!}
@if(count($promotion)>0)

Remise sur la quantité

@foreach($promotion as $promo) @php $percent=$produit->prixttc *$promo->fromqte - $produit->prixttc *(1-$promo->reduction/100)*$promo->fromqte @endphp @endforeach
Quantité Remise sur prix unitaire Vous économisez
{{$promo->fromqte}} {{$promo->reduction}} % {{$percent}} {{$devise}}
@endif
{!! Helper::traducteurs(71) !!}
@if(count($produit->produitassocies))
{!! Helper::traducteurs(72) !!}
@foreach($produit->produitassocies as $produit_associe) @php $img_survol='' @endphp @foreach($produit_associe->produit->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 @php $tab=[] @endphp @php $price=$produit_associe->produit->prixttc; $repture =1; @endphp @if($produit_associe->produit->stock>0 && $produit_associe->produit->type==1) @php $repture =0 @endphp @endif @if($produit_associe->produit->type==2) @foreach($produit_associe->produit->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 @foreach($produit_associe->produit->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
@if($produit_associe->newcollection==1)
New
@endif
@if(!empty($img_survol))
@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
{{$produit_associe->produit->translate($locale)->name}}

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

{{$price}}
@if(isset($tab[1])>0)
    @php $c=0 @endphp @foreach($tab[1] as $ind=>$couleur) @php $c++ @endphp
  • @endforeach
@endif
@endforeach
@endif
@if(count($categoriesProduits)>0)
@foreach($categoriesProduits as $category) @php $img_survol='' @endphp @foreach($category->Produit->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 @php $tab=[] @endphp @php $price=$category->Produit->prixttc; $repture =1; @endphp @if($category->Produit->stock>0 && $category->Produit->type==1) @php $repture =0 @endphp @endif @if($category->Produit->type==2) @foreach($category->Produit->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 @foreach($category->Produit->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
@if($category->Produit->newcollection==1)
New
@endif
@if(!empty($img_survol))
@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
{{$category->Produit->translate($locale)->name}}

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

{{$price}}
@if(isset($tab[1])>0)
    @php $c=0 @endphp @foreach($tab[1] as $ind=>$couleur) @php $c++ @endphp
  • @endforeach
@endif
@endforeach
@endif @endsection