@extends('layouts.admin') @section('title', 'Account Details') @section('content')

Account Information

Account Number {{ $account->account_number }}
Account Type {{ ucfirst($account->account_type) }}
Status {{ ucfirst($account->status) }}
Customer {{ $account->user->name ?? 'N/A' }}
Created {{ $account->created_at->format('M d, Y') }}

Balance Management

Current Balance {{ $currency ?? '₦' }}{{ number_format($account->balance, 2) }}
@csrf
@error('type') {{ $message }} @enderror
@error('amount') {{ $message }} @enderror
@error('date') {{ $message }} @enderror
@error('description') {{ $message }} @enderror

Transaction History

Reference Type Amount Fee Description Status Date @forelse($transactions as $transaction) {{ $transaction->reference }} {{ ucfirst($transaction->type) }} {{ $currency ?? '₦' }}{{ number_format($transaction->amount, 2) }} {{ $currency ?? '₦' }}{{ number_format($transaction->fee ?? 0, 2) }} {{ Str::limit($transaction->description ?? '', 40) }} {{ ucfirst($transaction->status) }} {{ $transaction->created_at->format('M d, Y H:i') }} @empty

No transactions found for this account.

@endforelse
@endsection