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

Commande {{ $order->order_number }}

{{ $order->status_label }}
{{-- Customer Info --}}

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

{{ $order->notes }}

@endif
{{-- Order Items --}}

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
{{-- Status Update --}}

Changer le statut

@csrf @method('PATCH')

Infos commande

Créée le

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

Mise à jour

{{ $order->updated_at->format('d/m/Y à H:i') }}

Articles

{{ $order->items->count() }} article(s)

@endsection