@php $modeReglement = match((int) $order->modeReglement) { 0 => 'Règlement à la livraison', default => 'Règlement à la livraison', }; $modePaiement = match((int) $order->modePaiement) { 0 => 'Espèce', default => 'Espèce', }; @endphp

Flora Naturopathy

La nature soigne, on vous accompagne

Émetteur : Flora Naturopathy, Mohamedia

Téléphone : 06.62.62.30.81

Email : flora.naturopathy8@gmail.com

Commande N° : {{ $order->reference }}

Date : {{ \Carbon\Carbon::parse($order->dateCommande)->format('d/m/Y') }}

Expédier à : {{ $order->clientDetail->nom }}

Téléphone : {{ $order->clientDetail->telephone }}

Adresse : {{ $order->clientDetail->adresse }}, {{ $order->clientDetail->ville }}

@foreach($order->produitsDetail ?? [] as $produit) @php $typeLabel = match((int) $produit->type) { 0 => '- Bocal', 1 => '- Sachet', default => '', }; @endphp @endforeach @php $rowspanCount = 3; if(!is_null($order->remise)) { $rowspanCount = 4; } @endphp @if(!is_null($order->remise)) @endif
Désignation Prix (DH) Quantité Total (DH)
{{ $produit->nom }} {{ $typeLabel }} {{ number_format($produit->pivot->prix, 2, ',', ' ') }} {{ $produit->pivot->quantite }} {{ number_format($produit->pivot->tarif_total, 2, ',', ' ') }}

Conditions de règlement : {{ $modeReglement }}

Date prévue de livraison : {{ \Carbon\Carbon::parse($order->dateLivraison)->format('d/m/Y') }}

Mode de règlement : {{ $modePaiement }}

Total {{ number_format($totalTarif, 2, ',', ' ') }}
Livraison {{ number_format($order->fraisLivraison, 2, ',', ' ') }}
Remise {{ number_format($order->remise, 2, ',', ' ') }}
Total (DH) {{ number_format($order->total, 2, ',', ' ') }}