| Reference | Supplier | Date | Total | Status | Actions |
|---|---|---|---|---|---|
| {{ $purchase->reference_no ?? 'N/A' }} | {{ $purchase->supplier?->name ?? '—' }} | {{ $purchase->purchase_date ? $purchase->purchase_date->format('d M Y') : '—' }} | {{ number_format($purchase->total ?? 0, 2) }} | @switch(strtolower($purchase->status ?? 'draft')) @case('confirmed') Confirmed @break @case('draft') Draft @break @default {{ ucfirst($purchase->status ?? 'Unknown') }} @endswitch | View @if (strtolower($purchase->status ?? '') === 'draft') @endif |
| No purchases found. Create your first purchase. | |||||