Facture {{ $commande->created_at->format('d/m/Y H:i') }} Status: {{$commande->statut}}
De:
{{$commande->restaurant->name}}
Adresse: {{$commande->restaurant->address ?? 'N/A'}}
Email: {{$commande->restaurant->email}}
Téléphone: {{$commande->restaurant->phone_number}}
A:
Nom : {{$commande->client_name ?? 'Client Inconnu'}}
Telephone : {{$commande->telephone_client ?? 'Téléphone Non Spécifié'}}
@if ($commande->restaurant->logo)
Logo du Restaurant
@endif
Numéro de Table: @if ($commande->table) {{$commande->table->id}} @else Commande à Emporter @endif
@if($commande->table && $commande->table->qr_code) QR Code @else No QR Code @endif
@foreach ($commande->details as $index => $detail) @endforeach
# Plats Quantité Prix Unitaire Prix Total
{{ $loop->iteration }} Image du plat {{ $detail->plat->name }} {{ $detail->quantite }} {{ $detail->plat->price }} Fcfa {{ $detail->quantite * $detail->plat->price }} Fcfa
Total {{$totalPrice}} Fcfa
@if($commande->statut == 'en_cours') @else Encaissée @endif
@if ($commande->restaurant->signature)
Signature du Cachet
@endif