Order Details

@if (session()->has('message'))

{{ session('message') }}

@endif

Order #{{ $commande->numero }}

{{ ucfirst(str_replace('_', ' ', $commande->statut)) }}
Order Number

{{ $commande->numero }}

Customer

@if($commande->user) {{ $commande->user->name }} @else N/A @endif

Email

{{ $commande->user ? $commande->user->email : 'N/A' }}

Order Date

{{ $commande->date_commande }}

Total Amount

{{ number_format($commande->montant_total, 2) }} FCFA

Institution

{{ $commande->institution ?: 'N/A' }}

@if ($commande->commentaire)
Comment
{{ $commande->commentaire }}
@endif
Ordered Services @if ($commande->commandeServices->isNotEmpty())
@foreach ($commande->commandeServices as $commandeService) @endforeach
Service Name Quantity Price Total
@if($commandeService->service) {{ $commandeService->service->nom_en }} @else Unknown Service @endif {{ $commandeService->quantity }} {{ number_format($commandeService->price, 2) }} FCFA {{ number_format($commandeService->price * $commandeService->quantity, 2) }} FCFA
Total: {{ number_format($commande->montant_total, 2) }} FCFA
@else

No services associated with this order.

@endif
Sample Data File @if ($commande->excel_file)

{{ basename($commande->excel_file) }}

Uploaded: {{ \Carbon\Carbon::parse($commande->updated_at)->format('M d, Y, H:i') }}

@else

No sample data file has been uploaded with this order.

@endif
Order Status

Order Received

{{ $commande->created_at->format('M d, Y, H:i') }}

Processing

{{ $commande->statut == 'in_progress' || $commande->statut == 'completed' ? 'In progress' : 'Waiting' }}

Completed

{{ $commande->statut == 'completed' ? 'Order completed' : 'Not completed yet' }}