@extends('backend.virtual_card.index') @section('title', __('Provider: :name', ['name' => $provider->name])) @section('virtual_card_header') @php $caps = $provider->resolved_capabilities ?? []; $capLabels = [ 'issue' => __('Issue Card'), 'card_details' => __('Reveal PAN/CVV'), 'topup' => __('Top-up'), 'withdraw' => __('Withdraw'), 'freeze' => __('Freeze / Unfreeze'), 'limits' => __('Spend Limits'), 'controls' => __('Card Controls'), ]; $gateway = $provider->paymentGateway; $totalCards = (int) $statBuckets->sum(); @endphp
{{ __('Provider Detail') }}

{{ $provider->name }}

{{ __('Review gateway capability, coverage, recent cards, and request activity for this provider.') }}

{{ __('Cards') }} {{ number_format($totalCards) }}
{{ __('Active') }} {{ number_format((int) ($statBuckets['active'] ?? 0)) }}
{{ __('Failed') }} {{ number_format((int) ($statBuckets['failed'] ?? 0)) }}
{{ __('All Providers') }}
@endsection @section('virtual_card_content')
{{ $provider->name }}
{{ $provider->code }}{{ $provider->brand ? ' / '.$provider->brand : '' }}
{{ $provider->status ? __('Active') : __('Inactive') }}
@foreach($capLabels as $key => $label) {{ $label }} @endforeach
{{ __('Networks') }}
@forelse($provider->supported_networks ?? [] as $net) {{ Str::upper($net) }} @empty {{ __('No restriction') }} @endforelse
{{ __('Currencies') }}
@forelse($provider->supported_currencies ?? [] as $cur) {{ $cur }} @empty {{ __('No restriction') }} @endforelse
{{ __('Countries') }}
@forelse($provider->supported_countries ?? [] as $country) {{ $country }} @empty {{ __('All countries') }} @endforelse
{{ __('Issue Fee') }}
{{ $provider->fee_formatted }}
@if($gateway) @endif
{{ __('Recent Cards') }}
{{ trans_choice(':count row|:count rows', $recentCards->count(), ['count' => $recentCards->count()]) }}
@forelse($recentCards as $card) @php $statusValue = $card->status?->value ?? (string) $card->status; $badgeClass = match ($statusValue) { 'active' => 'success', 'pending' => 'info', 'inactive' => 'warning', 'blocked', 'failed' => 'danger', 'expired' => 'secondary', default => 'secondary', }; @endphp @empty @endforelse
{{ __('Card') }} {{ __('User') }} {{ __('Wallet') }} {{ __('Status') }} {{ __('Action') }}
**** {{ $card->last4 ?? '----' }}
{{ $card->expiry_month ? $card->expiry_month.'/'.$card->expiry_year : __('No expiry') }}
{{ $card->user?->email ?? __('Unknown') }}
{{ optional($card->request?->cardholder)->full_name }}
{{ $card->wallet?->currency?->code ?? '-' }} {{ ucfirst($statusValue ?: '-') }}
@csrf
{{ __('Recent Requests') }}
{{ trans_choice(':count row|:count rows', $recentRequests->count(), ['count' => $recentRequests->count()]) }}
@forelse($recentRequests as $req) @empty @endforelse
{{ __('Request') }} {{ __('User') }} {{ __('Cardholder') }} {{ __('Status') }}
#{{ $req->uuid }}
{{ $req->created_at?->diffForHumans() }}
{{ $req->user?->email ?? __('Unknown') }}
{{ optional($req->cardholder)->full_name }}
{{ optional($req->cardholder)->country }}
{{ $req->status?->label() }}
@include('backend.virtual_card.partials._manage_modal') @include('backend.payment_gateway.partial._edit_payment_gateway_modal') @endsection