@extends('dashboard.Boutique.Boutique_template.layouts.grocery.app') @section("content")
@php $thisShop=\Illuminate\Support\Facades\Session::get('boutique'); @endphp @if($thisShop->publicites!==null && count($thisShop->publicites)>0)
@foreach($thisShop->publicites as $publicite)
@endforeach
@else
@endif @if(sizeof($miseEnAvantArticles) > 0)

Notre choix de la semaine pour vous

@php $p=0; @endphp @foreach($miseEnAvantArticles as $article) @php $p++; @endphp @php $boutique_=$thisShop['slug']; $helpers=new \App\Http\Controllers\HelperController(); $prix=$helpers->get_article_price_by_boutique($article->slug,$boutique_); $name=$helpers->get_meta_article('name',$article->slug,$boutique_); $price=$helpers->get_meta_article('price',$article->slug,$boutique_); if($price['statut']==false){ $price['value']=$article->price; } if($thisShop->meta->currency_admin!==$thisShop->meta->currency_client) { $price['value']=$helpers->convertCurrency($thisShop->meta->currency_admin,$thisShop->meta->currency_client,$price['value']); $prix=$helpers->convertCurrency($thisShop->meta->currency_admin,$thisShop->meta->currency_client,$prix); } $promo=$helpers->get_meta_article('on_sale',$article->slug,$boutique_); if($promo['statut']==false){ $promo['value']=$article->on_sale; } $promopourcent=$helpers->get_meta_article('show_price',$article->slug,$boutique_); if($promopourcent['statut']==false){ $promopourcent['value']=$article->show_price ; } if($name['statut']==false){ $name=$article->name;}else{ $name=$name['value']; } $stock=$helpers->get_meta_article('stock',$article->slug,$boutique_); if($stock['statut']==false){ $stock=$article->quantity;}else{ $stock=$stock['value'];} $image= $helpers->get_simple_image($article->slug,$boutique_); @endphp @if($stock!=0)
{{\Illuminate\Support\Str::limit($article->description,100)}}
Détails
@if($promo['value']==true && $promopourcent['value']>0)
-{{$promopourcent['value']}}%
@endif
@endif @endforeach
@endif
@if(count($promos)>0)

Produits en promotion

    @php $i=0; @endphp @foreach($promos as $article) @php $boutique=\Illuminate\Support\Facades\Session::get('boutique'); $boutique_=$boutique['slug']; $helpers=new \App\Http\Controllers\HelperController(); $prix=$helpers->get_article_price_by_boutique($article->slug,$boutique_); $name=$helpers->get_meta_article('name',$article->slug,$boutique_); if($name['statut']==false){ $name=$article->name;}else{ $name=$name['value']; } $price=$helpers->get_meta_article('price',$article->slug,$boutique_); if($price['statut']==false){ $price['value']=$article->price; } if($boutique->meta->currency_admin!==$boutique->meta->currency_client) { $price['value']=$helpers->convertCurrency($boutique->meta->currency_admin,$boutique->meta->currency_client,$price['value']); $prix=$helpers->convertCurrency($boutique->meta->currency_admin,$boutique->meta->currency_client,$prix); } $promo=$helpers->get_meta_article('on_sale',$article->slug,$boutique_); if($promo['statut']==false){ $promo['value']=$article->on_sale; } $promopourcent=$helpers->get_meta_article('show_price',$article->slug,$boutique_); if($promopourcent['statut']==false){ $promopourcent['value']=$article->show_price ; } @endphp @if($promo['value']==true && $promopourcent['value']) @php $image= $helpers->get_simple_image($article->slug,$boutique_); @endphp @if($stock!=0)
    @endif @endif @endforeach
@endif @if(count($articles) >0)

Nouveaux produits

@php $p=0; @endphp @foreach($articles as $article) @php $p++; @endphp @php $boutique_=$thisShop['slug']; $helpers=new \App\Http\Controllers\HelperController(); $prix=$helpers->get_article_price_by_boutique($article->slug,$boutique_); $name=$helpers->get_meta_article('name',$article->slug,$boutique_); $price=$helpers->get_meta_article('price',$article->slug,$boutique_); if($price['statut']==false){ $price['value']=$article->price; } if($thisShop->meta->currency_admin!==$thisShop->meta->currency_client) { $price['value']=$helpers->convertCurrency($thisShop->meta->currency_admin,$thisShop->meta->currency_client,$price['value']); $prix=$helpers->convertCurrency($thisShop->meta->currency_admin,$thisShop->meta->currency_client,$prix); } $promo=$helpers->get_meta_article('on_sale',$article->slug,$boutique_); if($promo['statut']==false){ $promo['value']=$article->on_sale; } $promopourcent=$helpers->get_meta_article('show_price',$article->slug,$boutique_); if($promopourcent['statut']==false){ $promopourcent['value']=$article->show_price ; } if($name['statut']==false){ $name=$article->name;}else{ $name=$name['value']; } $stock=$helpers->get_meta_article('stock',$article->slug,$boutique_); if($stock['statut']==false){ $stock=$article->quantity;}else{ $stock=$stock['value'];} $image= $helpers->get_simple_image($article->slug,$boutique_); @endphp @if($p<=20 && $stock!=0)
{{\Illuminate\Support\Str::limit($article->description,100)}}
{{$prix}} {{$thisShop->meta->currency_client}} @if($promo['value']==true && $promopourcent['value']>0) {{$price['value']}} {{$thisShop->meta->currency_client}} @endif
@if($promo['value']==true && $promopourcent['value']>0)
-{{$promopourcent['value']}}%
@endif
@endif @endforeach
@endif @if(isset($metas->mot_d_ordres)) @php $icon=['images/char_1.png','images/char_2.png','images/char_3.png','images/char_4.png']; @endphp
@for($i=0;$imot_d_ordres);$i++)
  • {{$metas->mot_d_ordres[$i]}}

@endfor
@endif

Produits recommandés

@foreach($articles_lists as $article) @php $boutique_=$thisShop['slug']; $helpers=new \App\Http\Controllers\HelperController(); $prix=$helpers->get_article_price_by_boutique($article->slug,$boutique_); $name=$helpers->get_meta_article('name',$article->slug,$boutique_); $price=$helpers->get_meta_article('price',$article->slug,$boutique_); if($price['statut']==false){ $price['value']=$article->price; } if($thisShop->meta->currency_admin!==$thisShop->meta->currency_client) { $price['value']=$helpers->convertCurrency($thisShop->meta->currency_admin,$thisShop->meta->currency_client,$price['value']); $prix=$helpers->convertCurrency($thisShop->meta->currency_admin,$thisShop->meta->currency_client,$prix); } $promo=$helpers->get_meta_article('on_sale',$article->slug,$boutique_); if($promo['statut']==false){ $promo['value']=$article->on_sale; } $promopourcent=$helpers->get_meta_article('show_price',$article->slug,$boutique_); if($promopourcent['statut']==false){ $promopourcent['value']=$article->show_price ; } if($name['statut']==false){ $name=$article->name;}else{ $name=$name['value']; } $stock=$helpers->get_meta_article('stock',$article->slug,$boutique_); if($stock['statut']==false){ $stock=$article->quantity;}else{ $stock=$stock['value'];} $image= $helpers->get_simple_image($article->slug,$boutique_); @endphp @if($stock!=0)
@endif @endforeach
@endsection @section("script") @endsection