@if (isset($invoice))
@else
@foreach ($invoices as $inv)
@php
$paidAmount = $inv->amountPaid();
@endphp
@endforeach
@endif
{{--
{{ ucwords($invoice->gateway) }}
--}}
@if ($discountAmount > 0)
{{ $invoice->discountRequest?->actionBy?->name }}
@endif
{{--
@if (isset($invoice))
@else
@foreach ($currencies as $currency)
@endforeach
@endif
--}}
{{--
@if ($linkPaymentPermission == 'all')
@if ($viewBankAccountPermission != 'none')
@foreach ($bankDetails as $bankDetail)
@endforeach
@endif
@endif --}}
{{--
--}}