@php $i = 0 @endphp
@foreach ($checkin_lists as $checkin)
@php
$discount = $checkin->discounts;
$total_bill = round($checkin->bills - ($checkin->return_bills + $discount),2);
$total_received = $checkin->billl_received ? $checkin->billl_received : 0;
$balance = $total_bill - $total_received;
@endphp
@if($total_bill > $total_received)
@php
$i++;
@endphp
| {{ $i }} |
{{$checkin->checkin_code}}
|
|
@php
@endphp
|
|
|
|
|
@endif
@endforeach
| Grand Total |
|
|
|
|
|