@extends('mail.layout') @section('header')

📩

Nouvelle commande reçue !

Commande #{{ $order->order_number }}

@endsection @section('content')

Une nouvelle commande vient d'ĂȘtre passĂ©e sur la boutique. Voici les dĂ©tails :

{{-- Customer Info --}}

Client

Nom : {{ $order->shipping_address['first_name'] }} {{ $order->shipping_address['last_name'] }}

Email : {{ $order->shipping_address['email'] }}

Téléphone : {{ $order->shipping_address['phone'] }}

Adresse : {{ $order->shipping_address['address'] }}, {{ $order->shipping_address['city'] }}, {{ $order->shipping_address['zip'] }}

{{-- Order Details --}}

Détails commande

Numéro : {{ $order->order_number }}

Date : {{ $order->created_at->format('d/m/Y Ă  H:i') }}

Paiement : {{ $order->payment_method === 'cash_on_delivery' ? 'Paiement Ă  la livraison' : 'Carte bancaire' }}

{{-- Items --}} @foreach($order->items as $item) @endforeach
Produit Qté Prix
{{ $item->product_name }} {{ $item->quantity }} {{ number_format($item->price * $item->quantity, 2) }} DH
{{-- Totals --}}

Sous-total : {{ number_format($order->subtotal, 2) }} DH

@if($order->discount_amount > 0)

Réduction : -{{ number_format($order->discount_amount, 2) }} DH

@endif

Total : {{ number_format($order->total, 2) }} DH

Voir la commande dans le panel →
@endsection