@extends('layouts.app') @section('content')

{{ $bankAccount->name }}

{{ $bankAccount->bank_name }} | {{ $bankAccount->account_number }}

Edit Account
Current Balance

{{ formatCurrency($bankAccount->current_balance) }}

Opening Balance

{{ formatCurrency($bankAccount->opening_balance) }}

Type

{{ str_replace('_', ' ', $bankAccount->account_type) }}

Status

{{ $bankAccount->is_active ? 'Active' : 'Inactive' }}

Transaction History
@forelse($transactions as $tx) @empty @endforelse
Date Description Reference Debit Credit Status Actions
{{ date('M d, Y', strtotime($tx->date)) }}
{{ $tx->description }}
@if($tx->linked_transaction_id) Linked Transfer @endif
{{ $tx->reference_number ?: '-' }} {{ $tx->type === 'debit' ? formatCurrency($tx->amount) : '-' }} {{ $tx->type === 'credit' ? formatCurrency($tx->amount) : '-' }} {{ ucfirst($tx->status) }} @if($tx->status !== 'reconciled')
@csrf @method('DELETE')
@endif

No transactions found for this account.

@if($transactions->hasPages()) @endif
@endsection