@extends('garage.layouts.app') @section('title', 'Purchase orders') @push('styles') @include('shared.garage-purchase-order-ui-styles') @endpush @section('content')
Filter by status or date, then open a PO or start a new one from inventory.
| PO # | Date | Vendor | Total | Status | Actions |
|---|---|---|---|---|---|
| {{ $purchaseOrder->purchase_order_number }} | {{ \Carbon\Carbon::parse($purchaseOrder->purchase_order_date)->format('M d, Y') }} | @if(!empty($purchaseOrder->vendor_ledger_id)) {{ $purchaseOrder->vendor_name ?? '—' }} @else {{ $purchaseOrder->vendor_name ?? '—' }} @endif | PKR {{ number_format($purchaseOrder->total_amount, 2) }} | @php $statusColors = [ 'draft' => 'secondary', 'sent' => 'info', 'acknowledged' => 'primary', 'partial' => 'warning', 'received' => 'success', 'cancelled' => 'danger', ]; $statusColor = $statusColors[$purchaseOrder->status] ?? 'secondary'; @endphp {{ ucfirst($purchaseOrder->status) }} | |
| No purchase orders match your filters. | |||||