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

My Accounts

Manage and view all your bank accounts.

@if(isset($accounts) && $accounts->count())
@foreach($accounts as $account)
@if($account->type === 'savings') @elseif($account->type === 'current') @else @endif

{{ ucfirst($account->type) }} Account

****{{ substr($account->account_number, -4) }}

{{ ucfirst($account->status) }}

Current Balance

${{ number_format($account->balance, 2) }}

Ledger Balance

${{ number_format($account->ledger_balance ?? $account->balance, 2) }}

@endforeach
@else

No Accounts Found

You don't have any accounts yet. Contact support to get started.

@endif
@endsection