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

Référence

{{ $order->order_number }}

Statut

{{ $statuses[$order->status] ?? $order->status }}

Date

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

Total

{{ number_format($order->total_amount, 0, ',', ' ') }} {{ config('shop.currency_symbol') }}

Client & Livraison

Client

{{ $order->customer_first_name }} {{ $order->customer_last_name }}

{{ $order->customer_phone }}

@if($order->customer_email)

{{ $order->customer_email }}

@endif

Adresse

{{ $order->delivery_street }}

@if($order->delivery_postal_code){{ $order->delivery_postal_code }} @endif{{ $order->delivery_city }}

{{ $order->delivery_country }}

@if($order->customer_notes)

Notes client

{{ $order->customer_notes }}

@endif @if($order->admin_notes)

Notes admin

{{ $order->admin_notes }}

@endif @if($order->fulfillmentSource)

Source de prélèvement

{{ $order->fulfillmentSource->name }} {{ $order->fulfillmentSource->type }}

@if($order->fulfillment_note)

{{ $order->fulfillment_note }}

@endif
@endif

Articles

@foreach($order->items as $item) @endforeach
Produit Variante Qté Prix Sous-total
{{ $item->product_name }} {{ $item->variant_size }} {{ $item->quantity }} {{ number_format($item->unit_price, 0, ',', ' ') }} {{ config('shop.currency_symbol') }} {{ number_format($item->subtotal, 0, ',', ' ') }} {{ config('shop.currency_symbol') }}
Sous-total {{ number_format($order->subtotal, 0, ',', ' ') }} {{ config('shop.currency_symbol') }}
TVA {{ number_format($order->tax_amount, 0, ',', ' ') }} {{ config('shop.currency_symbol') }}
Livraison {{ number_format($order->shipping_cost, 0, ',', ' ') }} {{ config('shop.currency_symbol') }}
Total {{ number_format($order->total_amount, 0, ',', ' ') }} {{ config('shop.currency_symbol') }}

Historique des statuts

@if($order->statusHistory->isEmpty())

Aucun historique disponible.

@else
@foreach($order->statusHistory->sortByDesc('created_at') as $history) @endforeach
Date Ancien statut Nouveau statut Commentaire Par
{{ $history->created_at?->format('d/m/Y H:i') }} {{ $statuses[$history->old_status] ?? $history->old_status ?? '-' }} {{ $statuses[$history->new_status] ?? $history->new_status }} {{ $history->comment ?? '-' }} {{ $history->changedBy?->first_name ?? 'System' }}
@endif

Changer le statut

@csrf
@error('fulfillment_source_id')

{{ $message }}

@enderror
@endsection