{{ __('main.receipt_list') }}
@foreach ($payments as $item) @if ($item->payment_type == 1) @elseif($item->payment_type == 2) @elseif($item->payment_type == 3) @endif @endforeach
{{ __('main.voucher_no') }} {{ __('main.date') }} {{ __('main.customer') }} {{ __('main.amount') }} {{ __('main.towards') }} {{ __('main.payment_mode') }} {{ __('main.actions') }}
@if ($item->voucher_no) #{{ $item->voucher_no }} @endif
{{ $item->date->format('d/m/Y') }}
{{ __('main.by') }} {{ $item->createdBy->name ?? 'Unknown' }}
{{ $item->customer->file_number ?? '' }}
{{ $item->customer->first_name ?? '' }}
{{ getFormattedCurrency($item->paid_amount) }}
{{ __('main.invoice') }}
#{{ $item->invoice->invoice_number ?? '' }}
{{ __('main.opening_balance') }}
{{ __('main.cash_receipt') }}
{{ getPaymentMode($item->payment_mode) }}
@if ($item->note != '') {{ __('main.ref') }} {{ $item->note ?? '' }} @endif
@if (Auth::user()->id == $item->created_by) {{ __('main.edit') }} @endif {{ __('main.delete') }} {{ __('main.print') }}
@if (count($payments) == 0) @endif