@extends('layouts.app') @section('title', 'Bank Reconciliation') @section('breadcrumb') @endsection @section('content') @php $canReconcile = auth()->user()->hasPermission('banking', 'reconcile'); $isReadOnly = $reconciliation->isReconciled(); $summary = $summary ?? []; @endphp @if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@csrf
Statement details
@if($isReadOnly) Completed @else In progress @endif
@if(!$isReadOnly && $canReconcile)
Bank statement upload

Upload a CSV or Excel bank statement to compare with book transactions. Matching rows are auto-ticked using date and amount. Download template

@csrf
@endif @if($statementLines->isNotEmpty())
Uploaded statement lines
@foreach($statementLines as $line) @endforeach
Date Description Reference Deposit Payment Matched
{{ $line['date'] }} {{ $line['description'] }} {{ $line['reference'] }} {{ $line['deposit'] }} {{ $line['payment'] }} @if($line['is_matched']) Yes @else No @endif
@endif
@foreach([ ['label' => 'Beginning balance', 'id' => 'summaryBeginning', 'value' => $summary['beginning_balance'] ?? 0], ['label' => 'Cleared deposits (+)', 'id' => 'summaryDeposits', 'sub' => 'summaryDepositCount', 'value' => $summary['cleared_deposits'] ?? 0, 'count' => $summary['cleared_deposit_count'] ?? 0], ['label' => 'Cleared payments (−)', 'id' => 'summaryPayments', 'sub' => 'summaryPaymentCount', 'value' => $summary['cleared_payments'] ?? 0, 'count' => $summary['cleared_payment_count'] ?? 0], ['label' => 'Cleared balance', 'id' => 'summaryCleared', 'value' => $summary['cleared_balance'] ?? 0], ['label' => 'Difference', 'id' => 'summaryDifference', 'value' => $summary['difference'] ?? 0, 'balanced' => $summary['is_balanced'] ?? false], ] as $card)
{{ $card['label'] }}
{{ number_format((float) $card['value'], 2) }}
@if(!empty($card['sub']))
{{ $card['count'] ?? 0 }} item(s)
@endif @if(($card['id'] ?? '') === 'summaryDifference')
@if($card['balanced'] ?? false) Ready to finish ✓ @else Not balanced @endif
@endif
@endforeach
@if(!$isReadOnly && $canReconcile)
@endif
Filters
@include('partials.report-date-range-fields', [ 'dateFrom' => $filters['date_from'] ?? '', 'dateTo' => $filters['date_to'] ?? '', ])
@include('accounting.vouchers._list_party_filter', [ 'filterOptions' => $filterOptions, 'filters' => $filters, 'selectedPartyLabel' => $selectedPartyLabel ?? 'All names', ])
Reset
Transactions Posted entries on or before the statement date
@unless($isReadOnly) @endunless @forelse($transactions as $txn) @unless($isReadOnly) @endunless @empty @endforelse
ClearDate Voucher Type Voucher # Cheque No Cheque Date Payee / Memo Deposit Payment
{{ $txn['date'] }} {{ $txn['type_label'] }} @if($txn['voucher_id']) {{ $txn['voucher_number'] }} @else {{ $txn['voucher_number'] }} @endif {{ $txn['cheque_no'] }} {{ $txn['cheque_date'] }}
{{ $txn['payee'] }}
@if($txn['memo'])
{{ $txn['memo'] }}
@endif
{{ $txn['deposit'] }} {{ $txn['payment'] }}
No transactions match the current filters.
@foreach($hiddenClearedIds ?? [] as $hiddenClearedId) @endforeach @if($history->isNotEmpty())
Reconciliation history
@foreach($history as $item) $item->id === $reconciliation->id])> @endforeach
Statement date Statement balance Status Completed Actions
{{ $item->statement_date?->format('d/m/Y') }} {{ number_format((float) $item->statement_balance, 2) }} {{ $item->isReconciled() ? 'Completed' : 'In progress' }} {{ $item->reconciled_at?->format('d/m/Y H:i') ?: '—' }} @if($item->id !== $reconciliation->id) Open @else Current @endif
@endif @endsection @push('styles') @include('partials.report-datepicker-assets') @endpush @push('scripts') @include('partials.report-datepicker-init') @endpush