| {{ ($patientIndex === 0 && $smccIndex === 0 && $itemIndex === 0) ? ($dateGroup->date ?? '') : '' }} |
{{ ($smccIndex === 0 && $itemIndex === 0) ? ($patientGroup->patientName ?? '') : '' }} |
{{ ($smccIndex === 0 && $itemIndex === 0) ? ($patientGroup->registrationNo ?? '') : '' }} |
{{ ($smccIndex === 0 && $itemIndex === 0) ? ($patientGroup->mobileNo ?? '') : '' }} |
{{ ($itemIndex === 0) ? ($smccGroup->branchName ?? '') : '' }} |
{{ ($itemIndex === 0) ? ($smccGroup->subBranchName ?? '') : '' }} |
{{ ($itemIndex === 0) ? ($smccGroup->location ?? '') : '' }} |
{{ ($itemIndex === 0) ? ($smccGroup->locationType ?? '') : '' }} |
{{$item->category ?? ''}} |
{{$item->itemName ?? ''}} |
{{number_format($item->quantity ?? 0, 0)}} |
{{number_format($item->cashReceived ?? 0, 2)}} |
{{number_format($item->cashRefund ?? 0, 2)}} |
{{number_format($item->netAmount ?? 0, 2)}} |
@endforeach
@endif
@endforeach
@endif
| Patient Total: |
|
{{number_format($patientGroup->patientTotalCashReceived ?? 0, 2)}} |
{{number_format($patientGroup->patientTotalCashRefund ?? 0, 2)}} |
{{number_format($patientGroup->patientTotalNetAmount ?? 0, 2)}} |
@endforeach
@endif
| Date Total: |
|
{{number_format($dateGroup->dateTotalCashReceived ?? 0, 2)}} |
{{number_format($dateGroup->dateTotalCashRefund ?? 0, 2)}} |
{{number_format($dateGroup->dateTotalNetAmount ?? 0, 2)}} |
@if($dateIndex < count($groupedData) - 1)
| Grand Total: |
|
{{number_format($grandTotalCashReceived, 2)}} |
{{number_format($grandTotalCashRefund, 2)}} |
{{number_format($grandTotalNetAmount, 2)}} |