@if(isset($flag) && $flag == 'mailInvoice') @else @endif
| Date | Number | Type | Provider | Amount | Paid | Balance |
|---|---|---|---|---|---|---|
| {{Carbon\Carbon::parse($result->date)->format("d/m/y") ?? "-"}} | {{$result->invoice_number ?? "-"}} | @if(isset($result->one_invoiceappt) && isset($result->one_invoiceappt->appointment_type_notess) ) {{$result->one_invoiceappt->appointment_type_notess->appointment_type}} @elseif(isset($result->latest_invoice_product) && isset($result->latest_invoice_product['product_iteams'])) {{$result->latest_invoice_product['product_iteams']['product_name']}} @else {{'-'}} @endif | {{$fullName ?? "-"}} | $ {{$result->total ?? "-"}} | $ {{$result->amount_paid ?? "-"}} | $ {{$result->account_balance ?? "-"}} |
| $ {{number_format($total,2)}} | $ {{number_format($amount_paid,2) }} | $ {{number_format($balance,2) }} |