@if(isset($flag) && $flag == 'mailInvoice') @endif
@php $total = 0; $amount_paid = 0; @endphp @foreach($invoices as $result) @php $amount_paid = $amount_paid + (isset($result->account_balance) ? $result->account_balance : 0); $total = $total + (isset($result->total) ? $result->total : 0); @endphp @endforeach
Date Number Type Provider Amount Balance
{{Carbon\Carbon::parse($result->date)->format("d/m/y") ?? "-"}} {{$result->invoice_number ?? "-"}} @isset($result->one_invoiceappt) @isset($result->one_invoiceappt->appointment_type_notess) {{$result->one_invoiceappt->appointment_type_notess->appointment_type }} @else {{'-'}} @endisset @endisset {{$result->provider_name ?? "-"}} $ {{$result->total ?? "00.00"}} $ {{$result->account_balance ?? "00.00"}}
$ {{$total}} $ {{$amount_paid }}