@if(count($topventes)>0)

{!! Helper::traducteurs(38) !!}

{!! Helper::traducteurs(39) !!}

@foreach($topventes as $newcollection) @php $tab=[] @endphp
@if($newcollection->newcollection==1)
New
@endif
@php $img_survol=''; $img=''; @endphp @foreach($newcollection->images as $image) @php $img=$image->image_name @endphp {{-- @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)) @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}}

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

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