@extends('layouts.admin') @section('title', 'Commande '.$order->order_number) @section('page-title', 'Détail commande') @section('content')
Retour aux commandes

{{ $order->order_number }}

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

{{ $order->status_label }}
@csrf @method('PATCH')

Montant total

{{ number_format($order->total_amount, 0, ',', ' ') }}

FCFA

Informations client

{{ $order->customer_name }}
{{ $order->customer_email }}
{{ $order->customer_phone }}
{{ $order->customer_address }}
@if($order->notes)
{{ $order->notes }}
@endif

Articles commandés

@foreach($order->items as $item)

{{ $item->product_name }}

{{ $item->quantity }} × {{ number_format($item->unit_price, 0, ',', ' ') }} FCFA

{{ number_format($item->subtotal, 0, ',', ' ') }} FCFA
@endforeach
Total {{ number_format($order->total_amount, 0, ',', ' ') }} FCFA
@endsection