@extends('layouts.app') @section('title', 'Bank Information') @section('content')
Total Accounts
@if($hasFilters) Overall: {{ $stats['total_accounts'] }} @endifActive Accounts
@if($hasFilters) Overall: {{ $stats['active_accounts'] }} @endifTotal Balance
@if($hasFilters) Overall: ৳{{ number_format($stats['total_balance'], 2) }} @endif| ID | Account Holder | Account Name | Bank Name | Account Number | Account Type | Branch | Current Balance | Status | Transactions | Actions |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $account->id }} | {{ $account->accountHolder->name }} | {{ $account->account_name ?? 'N/A' }} |
{{ $account->bank_name }}
@if($account->description)
{{ Str::limit($account->description, 30) }} @endif |
{{ $account->account_number }} | {{ $account->account_type ?? 'N/A' }} | {{ $account->branch_name ?? 'N/A' }} |
৳{{ number_format($account->current_balance, 2) }}
Opening: ৳{{ number_format($account->opening_balance, 2) }} |
@if($account->is_active) Active @else Inactive @endif | {{ $account->bankTransactions->count() }} transactions |