@php $boutique=\Illuminate\Support\Facades\Session::get('boutique'); $boutique_=$boutique['slug']; $boutique_name=$boutique['nom_boutique']; $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']; } $description=$helpers->get_meta_article('description',$article->slug,$boutique_); if($description['statut']==false){ $description=$article->description;}else{ $description=$description['value']; } $maker=$helpers->get_meta_article('maker',$article->slug,$boutique_); if($maker['statut']==false){ $maker=$article->maker;}else{ $maker=$maker['value']; } $maker_country=$helpers->get_meta_article('maker_country',$article->slug,$boutique_); if($maker_country['statut']==false){ $maker_country=$article->maker_country;}else{ $maker_country=$maker_country['value']; } $create=$helpers->get_meta_article('create',$article->slug,$boutique_); if($create['statut']==false){ $create=$article->create;}else{ $create=$create['value']; } $create_=""; $expire_=""; $create=$helpers->get_meta_article('create',$article->slug,$boutique_); if($create['statut']==false){ if(isset($article->create) && $article->create!=null) $create_=\Illuminate\Support\Carbon::create($article->create)->format('d - m - y à H:i'); }else{ $create_=\Illuminate\Support\Carbon::create($create['value'])->format('d - m - y à H:i'); } $expire=$helpers->get_meta_article('expire',$article->slug,$boutique_); if($expire['statut']==false){ if(isset($article->expire) && $article->expire!=null) $expire_=\Illuminate\Support\Carbon::create($article->expire)->format('d - m - y à H:i');}else{ $expire_=\Illuminate\Support\Carbon::create($expire['value'])->format('d - m - y à H:i'); } $stock=$helpers->get_meta_article('stock',$article->slug,$boutique_); if($stock['statut']==false){ $stock=$article->quantity;}else{ $stock=$stock['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 ; } $images= $helpers->get_all_sup_image($article->slug,$boutique_); $images_full= $helpers->get_all_sup_full_image($article->slug,$boutique_); $i=0; $image_first= $helpers->get_simple_full_image($article->slug,$boutique_); $image_tini= $helpers->get_simple_image($article->slug,$boutique_); @endphp @extends('dashboard.Boutique.Boutique_template.layouts.defaultLayout') @section('title')
{{$carac->intitule}} disponibles : |
@foreach($articles_metas as $metas)
@if($metas->key == $carac->intitule && $metas->article_slug==$article->slug)
@php $value=[]; $value=explode(",",$metas->value); @endphp
@if($value !=null)
@for($i=0;$i |
{{$description}}
Fabriquant : | {{$maker}} |
Pays de fabrication : | {{$maker_country}} |
Date de fabrication : | {{$create_}} |
Date d'expiration : | {{$expire_}} |