Revenues |
{{--*/ $revenue = 0 /*--}}
@foreach($invoices as $invoice)
Invoice {{$invoice->id}}: |
{{number_format($revenue_ = $invoice->destination->amount *$invoice->invoice->exchange_rate)}} |
|
{{--*/ $revenue +=$revenue_ /*--}}
@endforeach
Total
Revenues
|
{{number_format($revenue)}} |
Expenses |
{{----*/ $cost_total = 0 /*----}}
@foreach($expenses as $expense)
{{$expense['expense_name']}}: |
{{number_format($expense['value'])}} |
|
{{----*/ $cost_total += $expense['value'] /*----}}
@endforeach
Total
Expenses
|
{{number_format($expense_total= $cost_total)}} |
Net Route Income |
{{number_format($revenue-$expense_total)}}
|