@extends('layouts.app') @section('title', 'Cheque Books Reports') @section('content')

Cheque Books Reports

Back to List
Cheque Usage Status
Status Count
Pending {{ $pendingCheques }}
Cleared {{ $clearedCheques }}
Bounced {{ $bouncedCheques }}
Cancelled {{ $cancelledCheques }}
Stopped {{ $stoppedCheques }}
Total {{ $totalIssuedCheques }}
Amount Statistics
Status Amount (৳)
Pending {{ number_format($pendingAmount, 2) }}
Cleared {{ number_format($clearedAmount, 2) }}
Bounced {{ number_format($bouncedAmount, 2) }}
Total {{ number_format($totalAmount, 2) }}
Active Books

{{ $activeBooks }}

Completed Books

{{ $completedBooks }}

Cancelled Books

{{ $cancelledBooks }}

Leaves Status Summary
Available

{{ $totalAvailableLeaves }}

Issued

{{ $totalIssuedLeaves }}

Used

{{ $totalUsedLeaves }}

Cancelled/Spoiled/Lost

{{ $totalCancelledLeaves }}

Recent Cheque Usage
@forelse($recentUsage as $usage) @empty @endforelse
Cheque Number Bank Account Payee Name Amount Issue Date Clearing Status
{{ $usage->chequeLeaf->cheque_number ?? 'N/A' }} {{ $usage->chequeLeaf->chequeBook->bankAccount->bank_name ?? 'N/A' }}
{{ $usage->chequeLeaf->chequeBook->bankAccount->account_number ?? 'N/A' }}
{{ $usage->payee_name ?? 'N/A' }} ৳{{ number_format($usage->amount ?? 0, 2) }} {{ $usage->issue_date ? $usage->issue_date->format('Y-m-d') : 'N/A' }} @if($usage->clearing_status == 'pending') Pending @elseif($usage->clearing_status == 'cleared') Cleared @elseif($usage->clearing_status == 'bounced') Bounced @elseif($usage->clearing_status == 'cancelled') Cancelled @elseif($usage->clearing_status == 'stopped') Stopped @else {{ ucfirst($usage->clearing_status) }} @endif
No recent usage found
@if($booksByBank->count() > 0)
Cheque Books by Bank Account
@foreach($booksByBank as $bank) @endforeach
Bank Name Account Number Total Books
{{ $bank->bankAccount->bank_name ?? 'N/A' }} {{ $bank->bankAccount->account_number ?? 'N/A' }} {{ $bank->total }}
@endif
@push('styles') @endpush @endsection