Branch Name: {{$data->branchName}}
@foreach($data->reportData as $index => $dat)
{{$dat->grnNo}},
@if(isset($dat->isReceived))
@if($dat->isReceived == true)
Received
@else
Pending
@endif
@endif
@if($dat->invoiceNo), Invoice No: {{$dat->invoiceNo}}@endif
@if($dat->paymentDate), Payment Date: {{$Controller::dateFormatter(optional($dat)->paymentDate)}}@endif
SL |
Name |
Requisition Qty |
GRN Qty |
Received Qty |
Batch No |
Invoice price |
Gift Qty |
Expiry Date |
@foreach($dat->details as $index => $req)
@php
$batchListLength = isset($req->batchDetails) ? count($req->batchDetails) : 1;
@endphp
@foreach($req->batchDetails as $batch)
@if($loop->first)
{{$index + 1}} |
{{$req->item->name}} |
@if($req->requisitionApprovedQty != null)
{{$req->requisitionApprovedQty}}
@else
N/A
@endif
|
{{$req->grnQty}} |
@endif
{{$batch->receiveQty}} |
{{$batch->batchNumber}} |
{{number_format(optional($batch)->invoicePrice,2,'.','')}} |
{{$req->giftQty}} |
{{$Controller::dateFormatter(optional($batch)->expiryDate)}} |
@endforeach
@endforeach
@endforeach