{{ __('main.customer_details') }}
@if (Auth::user()->id == $customer->created_by) @endif
@livewire('components.customer-profile', ['id' => $customer_id])
# {{ __('main.invoice_info') }} {{ __('main.total_amount') }} {{ __('main.payments') }} {{ __('main.actions') }}
@foreach ($invoices as $item) @endforeach
{{ $loop->index + 1 }}
#{{ $item->invoice_number }}
{{ \Carbon\Carbon::parse($item->date)->format('d/m/Y') }}
{{ __('main.by') }} {{ $item->createdBy->name }}
{{ 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) }}
{{ __('main.view') }}
@if ($hasMorePages)
Loading...
Loading...
@endif
@livewire('components.customer-discount', ['id' => $customer_id])