Référence : {{ $sale->reference }}
Statut : {{ $sale->status }}
Date : {{ optional($sale->created_at)->format('d/m/Y H:i') }}
Magasin : {{ $sale->magasin->name ?? '—' }}
Créé par : {{ trim(($sale->user->nom ?? '') . ' ' . ($sale->user->prenom ?? '')) ?: '—' }} @if($sale->client)
Client : {{ trim(($sale->client->nom ?? '') . ' ' . ($sale->client->prenom ?? '')) }} @endif
@forelse($sale->details as $detail) @empty @endforelse
Produit Qté Prix
{{ $detail->product->name ?? '—' }} {{ $detail->quantity }} {{ number_format((float) $detail->price, 0, ' ', ' ') }} FCFA
Aucun article
Total : {{ number_format((float) $sale->montant_total, 0, ' ', ' ') }} FCFA