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

Bank Account Details

Back to List
@if(session('success')) @endif @if(session('error')) @endif
Account Information
@if($account->isMobileWallet()) Mobile Wallet @else Traditional Bank @endif
@if($account->isMobileWallet())
Provider:
{{ $account->mobile_wallet_provider }}
Account Name:
{{ $account->mobile_wallet_account_name }}
Mobile Number:
{{ $account->getMaskedMobileNumber() }}
Account Nickname:
{{ $account->account_nickname ?? '-' }}
@else
Bank Name:
{{ $account->bank_name }}
Account Name:
{{ $account->bank_account_name }}
Account Number:
{{ $account->getMaskedAccountNumber() }}
Routing Number:
{{ $account->getMaskedRoutingNumber() ?? '-' }}
SWIFT Code:
{{ $account->bank_swift_code ? '****' : '-' }}
IBAN:
{{ $account->getMaskedIban() ?? '-' }}
Branch:
{{ $account->bank_branch ?? '-' }}
Bank Address:
{{ $account->bank_address ?? '-' }}
Account Nickname:
{{ $account->account_nickname ?? '-' }}
@endif
Admin Notes
@csrf
Withdrawal History ({{ $account->withdrawalRequests->count() }})
@if($account->withdrawalRequests->count() > 0)
@foreach($account->withdrawalRequests->take(10) as $withdrawal) @endforeach
Date Amount Status Action
{{ $withdrawal->created_at->format('M d, Y H:i') }} ${{ number_format($withdrawal->amount_cents / 100, 2) }} @if($withdrawal->status == 'completed') Completed @elseif($withdrawal->status == 'pending_admin_approval') Pending @elseif($withdrawal->status == 'rejected') Rejected @else {{ $withdrawal->status }} @endif View
@else

No withdrawal history yet.

@endif
Client Information

Name:
{{ $account->client->name }}

Email:
{{ $account->client->email }}

Phone:
{{ $account->client->phone ?? '-' }}

{{-- Uncomment when client route is available --}} {{-- View Client Profile --}}
Status

Active Status:
@if($account->is_active) Active @else Inactive
Reason: {{ $account->deactivation_reason }}
Deactivated: {{ $account->deactivated_at?->format('M d, Y H:i') }}
By: {{ $account->deactivatedBy->name ?? '-' }} @endif

Verification:
@if($account->is_verified) Verified
Verified: {{ $account->verified_at?->format('M d, Y H:i') }}
By: {{ $account->verifiedBy->name ?? '-' }} @else Unverified @endif

Default Account:
@if($account->is_default) Yes @else No @endif

Usage Statistics:
Used {{ $account->usage_count }} times
@if($account->last_used_at) Last used: {{ $account->last_used_at->diffForHumans() }} @else Never used @endif

Created:
{{ $account->created_at->format('M d, Y H:i') }}

Actions
@if($account->is_active) @else
@csrf
@endif @if($account->is_verified)
@csrf
@else
@csrf
@endif
@if($account->withdrawalRequests->count() == 0) @else Cannot delete - has withdrawal history @endif
@endsection