{{ __('main.sales_list') }}
@if (Auth::user()->user_type != 2) @endif
@foreach ($invoices as $item) @endforeach
# {{ __('main.invoice') }} {{ __('main.customer') }} {{ __('main.sub_total') }} {{ __('main.payments') }} {{ __('main.actions') }}
{{ $loop->index + 1 }}
#{{ $item->invoice_number }}
{{ \Carbon\Carbon::parse($item->date)->format('d/m/Y') }}
{{ $item->createdBy->name }}
{{ $item->customer_file_number }}
{{ $item->customer_name }}
{{ __('main.taxable') }}:
{{ getFormattedCurrency($item->taxable_amount) }}
{{ __('main.discount') }}:
{{ getFormattedCurrency($item->discount) }}
{{ __('main.tax') }}:
{{ getFormattedCurrency($item->tax_amount) }}
{{ __('main.total') }}:
{{ getFormattedCurrency($item->total) }}
@php $paid = \App\Models\InvoicePayment::where('invoice_id', $item->id)->sum('paid_amount'); @endphp
{{ __('main.paid') }}:
{{ getFormattedCurrency($paid) }}
{{ __('main.balance') }}:
{{ getFormattedCurrency($item->total - $paid) }}
@if (Auth::user()->user_type != 2) @if ($item->total - $paid > 0) {{ __('main.add_payment') }} @endif @endif {{ __('main.view_bill') }}
@if ($hasMorePages)
Loading...
Loading...
@endif
@if (count($invoices) == 0) @endif