@extends('layouts.client') @php $page_title = 'Mon espace'; @endphp @section('meta-title','Mon panier') @section('meta-keywords','') @section('meta-description','') @section('content')
@if($produits->count() > 0)
@php // $total = 0; // $quantite = 0; @endphp @foreach( $produits as $ligne_panier ) @endforeach
{!! lang('Article') !!} {!! lang('Désignation') !!} {!! lang('Prix indicatif public') !!} {!! lang('Prix Pipcke') !!} {!! lang('Quantité') !!} {!! lang('Frais de livraison') !!} {!! lang('Prix total TTC') !!}
{{ $ligne_panier->produit->nom }}
{{ $ligne_panier->produit->reference }}
@if($ligne_panier->produit->largeur) L. {{ $ligne_panier->produit->largeur }}cm @endif @if($ligne_panier->produit->hauteur) x H. {{ $ligne_panier->produit->hauteur }}cm @endif @if($ligne_panier->produit->profondeur) x P. {{ $ligne_panier->produit->profondeur }}cm @endif
{{ $ligne_panier->produit->prix }} € @php // $total+=$ligne_panier->produit->prix; @endphp {{ $ligne_panier->prix_pipcke ?? '?' }} @php // $quantite+=$ligne_panier->quantite; @endphp {{ $ligne_panier->frais_livraison ?? '?' }} {{ $ligne_panier->total >0?$ligne_panier->total ?? '?':'?' }}
Total {{ $total }} € ? {{ $quantite }} ? ?
@if(auth()->user()->adresses && auth()->user()->adresses->first())
{!! lang('Demande de devis') !!}

{{$quantite}} {!! lang('produit(s) dans mon panier') !!}
{!! lang('Adresse de livraison') !!}
{{auth()->user()->adresses->first()->nom }} {{auth()->user()->adresses->first()->prenom}}
{{auth()->user()->adresses->first()->telephone_mobile ?? auth()->user()->adresses->first()->telephone_fixe }}
{{auth()->user()->adresses->first()->adresse}}
{{auth()->user()->adresses->first()->code_postal}}
{{auth()->user()->adresses->first()->ville}}
@else
{!! lang('Demande de devis') !!}

{{$quantite}} {!! lang('produit(s) dans mon panier') !!}
{{csrf_field()}}
{!! lang('Adresse de livraison') !!}

{!! lang('Étage, digicode, ...') !!}
{!! lang('(nécessaire à la livraison)') !!}
* Champ obligatoire
{!! lang('Attention : la livraison couvre exclusivement la France métropolitaine.') !!}
@endif
@else

{!! lang('Votre panier est actuellement vide.') !!}

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