{{ __('Purchase Order Linkage') }}

{{ __('View requisition lines and their purchase order status.') }}

@forelse($requisitions as $requisition) @php $requisitionNumber = $requisition->requisition_number; @endphp @empty @endforelse
Number Requested By Priority Status
{{ $requisitionNumber }}

{{ $requisition->approval_flow_label }}

{{ $requisition->created_by }} @php $priorityClasses = match ($requisition->priority) { 'Very Urgent' => 'bg-red-100 text-red-700 border-red-200', 'Urgent' => 'bg-orange-100 text-orange-700 border-orange-200', default => 'bg-green-100 text-green-700 border-green-200', }; @endphp {{ $requisition->priority }} @if ($requisition->po_lines == 0) Awaiting @elseif($requisition->po_lines < $requisition->total_lines) Partially Created @else Created @endif
@if (isset($lines[$requisitionNumber])) @foreach ($lines[$requisitionNumber] as $line) @php $days = (int) $line['processing_days']; $hasPod = !empty($line['pod_nbr']); $rowBg = 'bg-white'; if ($days >= 5 && !$hasPod) { $rowBg = 'bg-red-100'; } elseif ($days >= 3 && !$hasPod) { $rowBg = 'bg-yellow-100'; } elseif ($hasPod) { $rowBg = 'bg-green-100'; } @endphp @endforeach
Requisition Purchase Order
Line Item Number Description Qty Lead Time Status PO Number PO Date ETA
{{ $line['line'] }} {{ $line['item_number'] }} {{ $line['name'] }} {{ $line['quantity'] }} {{ $line['unit'] }} {{ $line['processing_days'] }} {{ Str::plural('Day', $line['processing_days']) }} {{ $line['pod_nbr'] ? 'Created' : 'Awaiting' }} {{ $line['pod_nbr'] ?? '-' }} {{ $line['po_ord_date'] ?? '-' }} {{ $line['rqm_req_date'] ?? '-' }}
@else
No lines found for this requisition.
@endif
No requisition lines found.
{{ $requisitions->appends(request()->except('page'))->links() }}