{{ $loop->iteration }} |
CID: {{ $p->client_id }} |
{{ date('d-M-Y h:i:s A', strtotime($p->created_at)) }} |
{{ $p->clients->userid ?? '' }} |
{{ $p->clientsinfo->clients_name ?? '' }} |
{{ $p->description ?? '' }} |
@php
$adjustment = 0;
if($p->due_amount <= 0){
$adjustment = $p->bill_amount;
}else{
$adjustment = $p->bill_amount - $p->due_amount;
}
$sum += $adjustment;
@endphp
{{ $adjustment ?? '' }} |
{{ $p->due_amount ?? '' }} |
{{ $p->paid_amount ?? '' }} |
@endforeach
Total |
{{ number_format((float) $sum, 2, '.', '') }} |
{{ number_format((float) $list->sum('due_amount'), 2, '.', '') }} |
{{ number_format((float) $list->sum('paid_amount'), 2, '.', '') }} |