Purchase Orders

@if($farms->isEmpty())
You do not have farm access yet. Ask admin to assign at least one farm before creating purchase orders.
@endif
@csrf
@foreach($orders as $o) @endforeach
DateFarmSupplierCategoryPoultry TypeQtyUnitAmountStatus
{{ $o->order_date?->format('Y-m-d') }}{{ $o->farm?->name }}{{ $o->supplier?->name }}{{ ucfirst($o->purchase_category ?? 'other') }}{{ $o->poultry_type ? ucfirst($o->poultry_type) : '-' }}{{ $o->quantity ? number_format((float)$o->quantity, 3) : '-' }}{{ $o->unit_price ? number_format((float)$o->unit_price, 2) : '-' }}{{ number_format($o->amount, 2) }}{{ $o->status }}
@csrf @method('DELETE')
Edit order #{{ $o->id }}
@csrf @method('PATCH')
{{ $orders->links() }}