@if($data->type == 'CASH')
SL |
User |
Date |
Invoice No |
Patient Reg. No |
Patient Name |
Payment Method |
Bill Type |
Net Cash Amount |
@if(isset($data->list))
@foreach($data->list as $index => $req)
{{$index+1}} |
{{$req->createdBy}} |
{{$Controller::dateFormatter($req->createdDate)}} |
{{$req->invoiceNo}} |
{{$req->customerRegNo}} |
{{$req->customerName}} |
{{$req->paymentMethod}} |
{{$req->salesType}} |
{{number_format(($req->payAmount - $req->returnAmount), 2)}} |
@endforeach
@endif
Total = |
{{number_format(($data->totalCashAmount - $data->totalReturnAmount), 2)}} |
@else
SL |
User |
Date |
Invoice No |
Patient Reg. No |
Patient Name |
Payment Method |
Bill Type |
Amount |
@if(isset($data->list))
@foreach($data->list as $index => $req)
{{$index+1}} |
{{$req->createdBy}} |
{{$Controller::dateFormatter($req->createdDate)}} |
{{$req->invoiceNo}} |
{{$req->customerRegNo}} |
{{$req->customerName}} |
{{$req->paymentMethod}} |
{{$req->salesType}} |
{{number_format($req->payAmount, 2)}} |
@endforeach
@endif
Total = |
{{number_format($data->totalCashAmount, 2)}} |
@endif