@extends('layouts.client') @php $page_title = 'Mon espace'; @endphp @section('meta-title', 'Commande N° ' . $commande->id) @section('meta-keywords', '') @section('meta-description', '') @section('content')
Détails du devis N° {{ $commande->id }}
@if ($commande->statut == 'Devis expiré') {!! lang('Renouveler ma demande de devis') !!} @endif @if ($commande->statut == 'Devis reçu' && count($lignes) > 0) {!! lang('Passer commande') !!} @endif
@if ($commande->statut != 'Commande validée' && $commande->statut != 'Expédiée') @endif @if ($commande->statut == 'Commande validée' || $commande->statut == 'Expédiée') @endif @php $qte = 0; $totalprixindicatif = 0; $totalprixpipcke = 0; $totallivraison = 0; $totalprix = 0; $totaleconomie = 0; @endphp @foreach ($lignes as $ligne) @php $qte += $ligne->quantite; $totalprixindicatif += $ligne->produit->prix; $totalprixpipcke += $ligne->prix_pipcke; $totallivraison += $ligne->frais_livraison; $totalprix += $ligne->total; $economie = 0; $val = 0; if ($ligne->produit->prix) { $val = ($ligne->produit->prix - $ligne->prix_pipcke) * $ligne->quantite; } $economie += $val; $totaleconomie += $economie; @endphp @if ($commande->statut != 'Commande validée' && $commande->statut != 'Expédiée') @endif @if ($commande->statut == 'Commande validée' || $commande->statut == 'Expédiée') @endif @endforeach @if ($commande->statut != 'Commande validée' && $commande->statut != 'Expédiée') @endif @if ($commande->statut == 'Commande validée' || $commande->statut == 'Expédiée') @endif
{!! lang('Article') !!} {!! lang('Désignation') !!}{!! lang('Prix indicatif public') !!}{!! lang('Prix Pipcke') !!} {!! lang('Quantité') !!} {!! lang('Frais de livraison') !!} {!! lang('Prix total TTC ') !!}{!! lang('Statut') !!}
{{ $ligne->produit->nom }}
{{ $ligne->produit->reference }}
@if ($ligne->produit->largeur) L. {{ $ligne->produit->largeur }}cm @endif @if ($ligne->produit->hauteur) x H. {{ $ligne->produit->hauteur }}cm @endif @if ($ligne->produit->profondeur) x P. {{ $ligne->produit->profondeur }}cm @else   @endif @if ($ligne->produit->info)
{{ $ligne->produit->info }} @endif
@if ($ligne->remarque) @if ($commande->statut != 'Devis en cours')
{!! preg_replace('#(\r\n|\r|\n)#', '
', $ligne->remarque) !!}
@endif @endif
@if ($ligne->produit->prix) {{ $ligne->produit->prix }} € @else - @endif @if ($commande->statut != 'Devis en cours') @if ($ligne->prix_pipcke) {{ $ligne->prix_pipcke }} € @else - @endif @else -- @endif @if ($commande->statut == 'Devis expiré') @else {{ $ligne->quantite }} @endif @if ($commande->statut != 'Devis en cours') @if ($ligne->frais_livraison) {{ $ligne->frais_livraison }} € @else - @endif @else -- @endif @if ($commande->statut != 'Devis en cours') @if ($ligne->total) {{ $ligne->total }} € @else - @endif @else -- @endif {{ $ligne->status }} @if ($commande->statut == 'Devis reçu' || $commande->statut == 'Devis expiré') @endif
Total {{ $totalprixindicatif }} € @if ($commande->statut != 'Devis en cours') {{ $totalprixpipcke }} € @else -- @endif {{ $qte }} @if (!($commande->statut == 'Devis en cours')) @if ($totallivraison) {{ $totallivraison }} € @else - @endif @else -- @endif @if (!($commande->statut == 'Devis en cours')) {{ $totalprix }} € @else -- @endif
@if (($commande->statut == 'Devis reçu' || $commande->statut == 'Devis en cours') && count($lignes_non_prise) > 0)
Article(s) non disponible(s) en commande via pipcke.fr
@foreach ($lignes_non_prise as $ligne) @endforeach
{!! lang('Article') !!} {!! lang('Désignation') !!} {!! lang('Prix indicatif public') !!} {!! lang('Quantité') !!}
{{ $ligne->produit->nom }}
{{ $ligne->produit->reference }}
@if ($ligne->produit->largeur) L. {{ $ligne->produit->largeur }}cm @endif @if ($ligne->produit->hauteur) x H. {{ $ligne->produit->hauteur }}cm @endif @if ($ligne->produit->profondeur) x P. {{ $ligne->produit->profondeur }}cm @else   @endif @if ($ligne->produit->info)
{{ $ligne->produit->info }} @endif
@if ($ligne->remarque)
{!! preg_replace('#(\r\n|\r|\n)#', '
', $ligne->remarque) !!}
@endif
@if ($ligne->produit->prix) {{ $ligne->produit->prix }} € @else - @endif {{ $ligne->quantite }}
@endif
@if ($commande->status_economie == 'on' && $totaleconomie > 0)
Économie réalisée* : {{ $totaleconomie }} €
{!! lang('* Comparé au prix conseillé') !!}
@endif
@if ($commande->statut == 'Devis expiré' || $commande->statut == 'Devis reçu') {!! lang('Modifier') !!} @endif
{!! lang('Adresse de livraison') !!}
{{ $adresse->prenom ?? '' }} {{ $adresse->nom ?? '' }}
{{ $adresse->telephone_mobile ?? '' }}
{{ $adresse->adresse ?? '' }}
{{ $adresse->code_postal ?? '' }}
{{ $adresse->ville ?? '' }}
@if ($adresse_facturation && ($commande->statut == 'Commande validée' || $commande->statut == 'Expédiée'))
{!! lang('Adresse de facturation') !!}
{{ $adresse_facturation->prenom ?? '' }} {{ $adresse_facturation->nom ?? '' }}
{{ $adresse_facturation->telephone_mobile ?? '' }}
{{ $adresse_facturation->adresse ?? '' }}
{{ $adresse_facturation->code_postal ?? '' }}
{{ $adresse_facturation->ville ?? '' }}
@endif
@if ($commande->statut == 'Devis expiré') @endif @if ($commande->statut == 'Devis en cours') @endif @if ($commande->statut == 'Devis reçu' && count($lignes) > 0) @endif @if ($commande->statut != 'Devis en cours')
La disponibilité des produits en stock et les dates de livraison prévues peuvent varier en fonction des délais de commande.
@endif
@endsection @section('script') @endsection