@extends('layouts.customer-list-layout') @section('list-title')
{{ __('My Invoices') }}
@endsection @section('list-form-content')
{{ __('Total Amount') }}
@forelse($amounts['amounts'] as $amount) {{ isset($amount->totalInvoice) ? formatCurrencyAmount($amount->totalInvoice, $amount->currency->symbol) : 0 }}
@empty {{ formatCurrencyAmount(0) }}
@endforelse
{{ __('Total Paid') }}
@forelse($amounts['amounts'] as $amount) {{ isset($amount->totalPaid) ? formatCurrencyAmount($amount->totalPaid, $amount->currency->symbol) : 0 }}
@empty {{ formatCurrencyAmount(0) }}
@endforelse
{{ __('Total Due') }}
@forelse($amounts['amounts'] as $amount) {{ formatCurrencyAmount($amount->totalInvoice - $amount->totalPaid, $amount->currency->symbol) }}
@empty {{ formatCurrencyAmount(0) }}
@endforelse
{{ __('Over Due') }}
@if(count($amounts['overDue']) > 0) @foreach($amounts['overDue'] as $index => $overDue) {{ isset($overDue) && !empty($overDue) ? formatCurrencyAmount($overDue['totalAmount'] - $overDue['totalPaid'], $overDue->currency->symbol) : formatCurrencyAmount(0) }}
@endforeach @else @if (!empty($allCurrency)) @foreach($allCurrency as $key => $value) {{ formatCurrencyAmount(0, $value) }}
@endforeach @else {{ formatCurrencyAmount(0) }}
@endif @endif
@endsection @section('list-js') @endsection