Moon Traders
Cheque Register
Printed by: {{ auth()->user()->name }} | {{ now()->format('d-M-Y h:i A') }}
| # | Cheque Date {!! $sortIcon('cheque_date') !!} | Cheque No | Bank Name | Salesman | Shop Name | Address | Cheque Amount {!! $sortIcon('amount') !!} | Cleared Date | @can('report-audit-cheque-register-manage')Action | @endcan
|---|---|---|---|---|---|---|---|---|---|
| {{ ($cheques->currentPage() - 1) * $cheques->perPage() + $index + 1 }} | {{ $cheque->cheque_date ? \Carbon\Carbon::parse($cheque->cheque_date)->format('d-M-y') : '—' }} | {{ $cheque->cheque_number }} | {{ $cheque->bank_name }} | {{ $cheque->employee_name ?? '—' }} | {{ $cheque->customer_name ?? '—' }} | {{ $cheque->customer_address ?? '—' }} | {{ number_format($cheque->amount, 2) }} | {{ $cheque->cleared_date ? \Carbon\Carbon::parse($cheque->cleared_date)->format('d-M-y') : '—' }} | @can('report-audit-cheque-register-manage')@php $statusConfig = match ($cheque->status) { 'cleared' => ['label' => 'Cleared', 'class' => 'bg-green-100 text-green-800 hover:bg-green-200', 'tick' => true], 'bounced' => ['label' => 'Bounced', 'class' => 'bg-red-100 text-red-800 hover:bg-red-200', 'tick' => false], 'cancelled' => ['label' => 'Cancelled', 'class' => 'bg-gray-100 text-gray-700 hover:bg-gray-200', 'tick' => false], default => ['label' => 'Pending', 'class' => 'bg-yellow-100 text-yellow-800 hover:bg-yellow-200', 'tick' => false], }; @endphp | @endcan
| No cheques found. | |||||||||
| Total | {{ number_format($totalAmount, 2) }} | @can('report-audit-cheque-register-manage') | @endcan | ||||||