COMMANDE N° {{ $order->order_number ?? 'CMD-2024-001' }}
Date:
{{ $order->order_date ? $order->order_date->format('d/m/Y H:i') : '15/01/2024 14:30' }}
Type:
{{ $order->delivery_type === 'fast' ? 'Livraison Express' : 'Livraison Standard' }}
Statut:
{{ $order->status ?? 'Confirmée' }}
Paiement:
{{ $order->payment_method ?? 'Carte Bancaire' }}
{{ $order->payment_status ?? 'PAYÉ' }}
CLIENT
{{ $order->customer->name ?? 'Jean Dupont' }}
{{ $order->customer->phone ?? '+33 6 12 34 56 78' }}
{{ $order->customer->email ?? 'jean.dupont@email.com' }}
LIVRAISON
{{ $order->deliveryAddress->address ?? '123 Rue de la Paix' }}
{{ ($order->deliveryAddress->postal_code ?? '75001') . ' ' . ($order->deliveryAddress->city ?? 'Paris') }}
@if($order->deliveryAddress->additional_info ?? 'Appartement 4B')
{{ $order->deliveryAddress->additional_info ?? 'Appartement 4B' }}
@endif
@if($order->delivery_date)
Livraison prévue: {{ $order->delivery_date->format('d/m/Y H:i') }}
@endif
ARTICLES COMMANDÉS
Pizza Margherita
2
24,00€
Coca Cola 33cl
2
5,00€
Tiramisu
1
6,50€
{{-- Uncomment when you have order items relationship
@foreach($order->items as $item)
{{ $item->product->name }}
{{ $item->quantity }}
{{ number_format($item->total_price, 2) }}€
@endforeach
--}}
Sous-total:
{{ number_format($order->subtotal ?? 35.50, 2) }}€
Frais de livraison:
{{ number_format($order->delivery_fee ?? 3.50, 2) }}€
TOTAL:
{{ number_format($order->total_amount ?? 39.00, 2) }}€
CENTRE DE DISTRIBUTION
{{ $order->distributionCenter->name ?? 'Centre Paris Nord' }}
{{ $order->distributionCenter->phone ?? '+33 1 45 67 89 01' }}
@if($order->comments ?? 'Sonner à l\'interphone SVP')
COMMENTAIRES
{{ $order->comments ?? 'Sonner à l\'interphone SVP' }}
@endif