@extends('layouts.app') @section('title', 'Cheque Books') @section('breadcrumb') @endsection @section('content') @if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif @if($bankAccounts->isEmpty())
No Bank Account ledgers found. Tag a chart of accounts ledger as Bank Account under the Bank section first.
@endif
Cheque Books
@if($books->isEmpty())
No cheque books yet. Create one to begin.
@else
@foreach($books as $book) @endforeach
Bank Account Bank Branch Short A/C No Book No Leaf Range Leaves Actions
{{ $book->account?->code ? $book->account->code . ' ' : '' }}{{ $book->account?->name ?? '—' }} {{ $book->bank }} {{ $book->branch ?: '—' }} {{ $book->short_account_no ?: '—' }} {{ $book->book_no }} {{ $book->leafRangeLabel() }} {{ $book->total_leaves }}
@csrf @method('DELETE')
@endif
@endsection @push('scripts') @endpush