@extends('admin.admin_dashboard') @section('admin')

Bank Reconciliation

{{-- Reconciliation Form --}}
@csrf
{{-- Reconciled Months --}}

Bank Reconciliations by Account

{{-- Year Filter --}}
@if($reconciledMonths->count())
@foreach ($reconciledMonths as $accountId => $months) @php $account = $months->first(); @endphp

@foreach ($months as $m) @php $monthCarbon = \Carbon\Carbon::createFromFormat('Y-m', $m->month); $monthYear = $monthCarbon->year; $monthLabel = $monthCarbon->format('F Y'); @endphp @if ($monthYear == $selectedYear) @endif @endforeach
Month Opening Balance Closing Balance Status
{{ $monthLabel }} {{ number_format($m->opening_balance ?? 0, 0) }} {{ number_format($m->system_balance ?? 0, 0) }} @if (!empty($m->status)) {{ ucfirst($m->status) }} @else N/A @endif
@endforeach
@else
No reconciled months found.
@endif
@push('scripts') @endpush @endsection