{{-- ===================================================== Etebarit - by Gisoo Web Solutions ------------------------------------------------------ Gisoo.net ------------------------------------------------------ Copyright (c) 2026 Gisoo Web Solutions ===================================================== This code is protected by copyright ===================================================== File: index.blade.php ------------------------------------------------------ Use: The user's bank accounts from the approved design: card grid with the default and review states, and the add-account modal with live BIN detection. ===================================================== --}} @extends('layouts.user') @section('title', __('front.bank_accounts.title')) @section('breadcrumb') @endsection @section('page')

{{ __('front.bank_accounts.title') }}

{{ __('front.bank_accounts.subtitle') }}

@if ($accounts->count() < $limit) @endif
@if ($accounts->isEmpty())
{{ __('front.bank_accounts.empty') }}
@else
@foreach ($accounts as $account) @php $isDefault = $account->is_default && $account->isApproved(); @endphp
$isDefault, 'border border-line bg-white' => ! $isDefault, ])> @if ($isDefault) @endif
{{ $account->bankName() }}
@if ($isDefault) {{ __('front.bank_accounts.default') }} @endif
@fa($account->maskedCard())
$isDefault, 'text-ink-faint' => ! $isDefault]) dir="ltr">@fa($account->formattedSheba())
$isDefault, 'bg-[#e7f7ee] text-green-600' => ! $isDefault && $account->isApproved(), 'bg-[#fff5e6] text-amber-600' => $account->isPending(), 'bg-secondary-50 text-secondary-500' => $account->status === \App\Models\BankAccount::STATUS_REJECTED, ])>{{ __("front.bank_accounts.statuses.{$account->status}") }} @if ($account->reject_reason !== null) {{ __('front.bank_accounts.reject_reason') }}: {{ $account->reject_reason }} @endif
@if ($account->isApproved() && ! $account->is_default)
@csrf
@endif
@csrf @method('DELETE')
@endforeach
@endif

{{ __('front.bank_accounts.note', ['name' => auth()->user()->fullName()]) }}

@include('account.bank-accounts._add-modal')
@endsection