{{-- SweetAlert for session flash --}} @if (session()->has('success')) @endif
Requisition #{{ $requisition->request_no }}


{{-- --}} @foreach ($items as $index => $item) {{-- --}} {{-- --}} @if ($item['status'] == \App\Models\IndentRequisitionItem::STATUS_PENDING) @else @endif @endforeach
# Medicine InfoRequested Qty Hp Qty Available QtyBatch No Approved Qty Remark Action
{{ $index + 1 }} {{ $item['item_code'] }} - {{ $item['medicine'] }} Requested Qty : {{ $item['requested_qty'] }}
Hp Qty: {{ $item['hp_available_qty'] }}
@if ($item['status'] == \App\Models\IndentRequisitionItem::STATUS_PENDING) Available Qty: {{ array_sum(array_column($item['openingStocks'], 'quantity')) ?? 0 }} @if ($item['freeze_qty'] > 0) + ({{ $item['freeze_qty'] }}) @endif
@endif Unit : {{ $item['unit'] }}
{{ $item['requested_qty'] }} {{ $item['hp_available_qty'] }} {{ $item['available_qty'] }}{{ $item['unit'] }} @if (empty($item['selected_batch_text']))
Total Batch Qty: {{ $item['selected_batch_qty'] }} @else
{!! $item['selected_batch_text'] !!}
@endif
@error("items.$index.approved_qty") {{ $message }} @enderror @error("items.$index.remark") {{ $message }} @enderror @php $statusOptions = \App\Models\IndentRequisitionItem::getStatusOptions(); $status = $item['status']; @endphp {{ $statusOptions[$status] ?? 'Unknown' }}
{{-- --}} Back
@push('scripts') @endpush