@foreach($old_selected_invoices as $invoice)
INV {{$invoice->invoice_id}} (Transportation Fees)
Invoice Date {{\Carbon\Carbon::parse($invoice->invoice->date_created)->toFormattedDateString()}}
Invoiced Amount {{number_format($invoice->invoice->amount,2)}}
Outstanding Amount {{number_format(($invoice->invoice->amount-$invoice->invoice->paidAmount)+$invoice->getCurrentPaidAmount($invoice->invoice->currency),2)}}

@endforeach @foreach($invoices as $invoice) @if(number_format($invoice->amount) > number_format($invoice->paidAmount))
INV {{$invoice->id}} (Transportation Fees)
Invoice Date {{\Carbon\Carbon::parse($invoice->date_created)->toFormattedDateString()}}
Invoiced Amount {{number_format($invoice->amount)}}
Outstanding Amount {{number_format($invoice->amount-$invoice->paidAmount,2)}}

@endif @endforeach