@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') {{strtoupper(str_replace('_',' ',$boutique->nom_boutique)).':'.$article->slug}} @endsection @section('ogs') @endsection @section('css') @include('dashboard.Boutique.Boutique_template.styles.product_styles') @include('dashboard.Boutique.Boutique_template.styles.product_responsive') @endsection @section('content')
Détails {{$name}}
    @if(isset($image_first))
  • @endif @foreach($images as $image) @php $i++; @endphp @if($image->key==$article->slug) @if($i<3)
  • @endif @endif @endforeach
@php $image= $helpers->get_simple_full_image($article->slug,$boutique_); $image_tini= $helpers->get_simple_image($article->slug,$boutique_); @endphp
{{$article->categorie->intitule}}
{{$name}}
@if(isset($maker) && $maker!=null) Stock disponible: {{$stock}}     @endif
{{$prix}} {{$boutique->meta->currency_client}} @if($promo['value']==true && $promopourcent['value']) {{$price['value']}} {{$boutique->meta->currency_client}} @endif
Quantité:
@if(isset($caracteristique) && count($caracteristique)>0)
caractéristiques:
@foreach($caracteristique as $carac) @if(isset($articles_metas)) @endif @endforeach
{{$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 {{$value[$i]}} @endfor @endif @endif @endforeach
@endif
Présentation:

{{$description}}

@if(isset($maker) && $maker!=null) @endif @if(isset($maker_country) && $maker_country!=null) @endif @if(isset($create_) && $create_!="") @endif @if(isset($expire_) && $expire_!="") @endif
Fabriquant : {{$maker}}
Pays de fabrication : {{$maker_country}}
Date de fabrication : {{$create_}}
Date d'expiration : {{$expire_}}
@if(count($promos) >0)

Promo

@endif @endsection @section('script') @endsection