@foreach ($invoice->totals_sorted as $total)
@if ($total->code != 'total')
@stack($total->code . '_total_tr_start')
{{ trans($total->title) }}:
@money($total->amount, $invoice->currency_code, true)
@stack($total->code . '_total_tr_end')
@else
@if ($invoice->paid)
@stack('paid_total_tr_start')
{{ trans('invoices.paid') }}:
- @money($invoice->paid, $invoice->currency_code, true)
@stack('paid_total_tr_end')
@endif
@stack('grand_total_tr_start')
{{ trans($total->name) }}:
@money($total->amount - $invoice->paid, $invoice->currency_code, true)
@stack('grand_total_tr_end')
@endif
@endforeach