@push('header') @endpush
{{-- Supplier --}}
@if($selectedSupplierId) Clear @endif
{{-- Salesman --}}
@if($selectedEmployeeId) Clear @endif
{{-- Customer --}}
@if($selectedCustomerId) Clear @endif
{{-- Status (multi-select) --}}
@if(!empty($selectedStatuses)) Clear @endif
{{-- Cheque Date From --}}
{{-- Cheque Date To --}}
{{-- Entry Date From --}}
{{-- Entry Date To --}}
{{-- Bank Name --}}
{{-- Cheque Number --}}
{{-- Per Page --}}
@if(session('success'))
{{ session('success') }}
@endif

Moon Traders
Cheque Register
Printed by: {{ auth()->user()->name }} | {{ now()->format('d-M-Y h:i A') }}

@php $sortUrl = fn(string $col) => route('reports.cheque-register.index', array_merge(request()->query(), [ 'sort' => $col, 'direction' => ($sortBy === $col && $sortDir === 'asc') ? 'desc' : 'asc', 'page' => 1, ])); $sortIcon = function (string $col) use ($sortBy, $sortDir): string { if ($sortBy !== $col) { return ''; } return $sortDir === 'asc' ? '' : ''; }; @endphp @can('report-audit-cheque-register-manage') @endcan @forelse($cheques as $index => $cheque) @can('report-audit-cheque-register-manage') @endcan @empty @endforelse @can('report-audit-cheque-register-manage') @endcan
# Cheque Date {!! $sortIcon('cheque_date') !!} Cheque No Bank Name Salesman Shop Name Address Cheque Amount {!! $sortIcon('amount') !!} Cleared DateAction
{{ ($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') : '—' }} @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
No cheques found.
Total {{ number_format($totalAmount, 2) }}
@if($cheques->hasPages())
{{ $cheques->links() }}
@endif
{{-- Status Update Modal --}} @can('report-audit-cheque-register-manage')
@push('scripts') @endpush @endcan