@php use App\Enums\VirtualCard\CardholderType; @endphp @extends('backend.virtual_card.index') @section('title', __('Cardholder Management')) @section('virtual_card_header')
{{ __('Identity Registry') }}

{{ __('Cardholder Management') }}

{{ __('Review personal and business cardholders, KYC state, and provider compatibility.') }}

{{ __('Cardholders') }} {{ $cardholders->total() }}
{{ __('Active Providers') }} {{ $providers->count() }}
@endsection @section('virtual_card_content')
@forelse($cardholders as $holder) @php $isBusiness = $holder->card_type instanceof CardholderType && $holder->card_type === CardholderType::BUSINESS; $displayName = $isBusiness && $holder->business ? $holder->business->business_name : $holder->full_name; $chCountry = $isBusiness && $holder->business ? $holder->business->country : $holder->country; $compat = $providers->filter(fn ($p) => $p->supportsCountry($chCountry)); @endphp @empty @endforelse
{{ __('User') }} {{ __('Cardholder') }} {{ __('Identity / ID') }} {{ __('Compatible Providers') }} {{ __('Status') }} {{ __('Requested') }} {{ __('Actions') }}
{{ $holder->user->name ?? '-' }}
{{ $holder->user->name }} {{ $holder->user->role->title() }}
{{ $displayName ?: '—' }} {{ $holder->card_type->label() }}
{{ $holder->email ?? $holder->user->email ?? '-' }}
@if($isBusiness && $holder->business?->beneficial_owners)
{{ trans_choice(':count UBO|:count UBOs', count($holder->business->beneficial_owners), ['count' => count($holder->business->beneficial_owners)]) }}
@endif
@if($holder->id_type) {{ \Illuminate\Support\Str::headline(str_replace('_', ' ', $holder->id_type)) }} @endif @if($holder->id_number) {{ $holder->id_number }} @endif @if($chCountry) {{ $chCountry }} @endif
@if($compat->isEmpty()) {{ __('None') }} @else
@foreach($compat as $provider) {{ $provider->display_label ?: $provider->name }} @endforeach
@endif
{{ $holder->status->label() }}
{{ $holder->created_at->format('M d, Y') }}
{{ $holder->created_at->diffForHumans() }}
@include('backend.virtual_card.cardholder.partials._view_modal', ['holder' => $holder, 'providers' => $providers])
@if($cardholders->hasPages())
{{ $cardholders->withQueryString()->links() }}
@endif
@endsection