@extends('layouts.admin') @section('title', 'Commande ' . $order->order_number) @section('content')

Commande

{{ $order->order_number }} {{ $order->status_label }}

Passée le {{ $order->created_at->format('d/m/Y à H:i') }}

Informations client

Nom
{{ $order->customer_name }}
Email
{{ $order->email }}
Téléphone
{{ $order->phone }}
Ville
{{ $order->city }}{{ $order->wilaya ? ', ' . $order->wilaya : '' }}
Adresse
{{ $order->address }}
@if($order->notes)
Notes client
{{ $order->notes }}
@endif

Articles commandés

@foreach($order->items as $item) @endforeach
Produit Qté Prix unit. Sous-total
@if($item->product && $item->product->image) @else
@endif {{ $item->product_name }}
{{ $item->quantity }} {{ number_format($item->price, 2) }} FCFA {{ number_format($item->subtotal, 2) }} FCFA
Total {{ number_format($order->total_amount, 2) }} FCFA

Mettre à jour le statut

@csrf @method('PATCH')

Le client peut être informé selon vos processus (email, SMS, etc.).

Récapitulatif

Créée le
{{ $order->created_at->format('d/m/Y à H:i') }}
Dernière mise à jour
{{ $order->updated_at->format('d/m/Y à H:i') }}
Nombre d’articles
{{ $order->items->count() }} référence(s)
@endsection