@extends('layouts.admin-sidebar') @section('title', 'Virtual Cards Management') @section('page-title', 'Virtual Cards') @section('page-description', 'Manage virtual cards, limits, and settings') @section('content')

Total Cards

{{ number_format($stats['total_cards']) }}

Active Cards

{{ number_format($stats['active_cards']) }}

Frozen Cards

{{ number_format($stats['frozen_cards']) }}

Terminated

{{ number_format($stats['terminated_cards']) }}

Total Spending

₦{{ number_format($stats['total_spending'], 2) }}

@if($problematicProviders->count() > 0)

Card Provider Configuration Issues

Some card providers have configuration issues that may prevent card assignment:

@foreach($problematicProviders as $provider)

{{ $provider['name'] }}

@if(!$provider['config_exists']) ⚠ Not configured @elseif(!$provider['configured']) ⚠ Configuration incomplete @elseif(!$provider['is_active']) ⚠ Inactive @elseif($provider['last_test_status'] === 'failed') ⚠ Connection test failed @endif
@if(!$provider['config_exists']) Configure @else @php $config = \App\Models\ApiConfig::where('slug', $provider['slug'])->first(); @endphp @if($config) Fix Issues @endif @endif
@if($provider['config_errors'] && count($provider['config_errors']) > 0)
    @foreach($provider['config_errors'] as $error)
  • • {{ $error }}
  • @endforeach
@endif
@endforeach
@endif @if($activeProviders->count() > 0)

Available Card Providers

@foreach($activeProviders as $provider)

{{ $provider['name'] }}

Ready for card assignment
@endforeach
@endif
Clear

Virtual Cards ({{ $cards->total() }})

View Analytics
@if($cards->count() > 0)
@foreach($cards as $card) @endforeach
Card Details User Balance Status Created Actions
{{ $card->masked_pan }}
{{ strtoupper($card->brand) }} • {{ strtoupper($card->card_type) }}
{{ $card->user->full_name }}
{{ $card->user->email }}
{{ $card->currency }} {{ number_format($card->balance, 2) }}
Daily: {{ $card->currency }} {{ number_format($card->daily_limit, 2) }}
@if($card->status === 'active') Active @elseif($card->status === 'frozen') Frozen @elseif($card->status === 'terminated') Terminated @else {{ ucfirst($card->status) }} @endif {{ $card->created_at->format('M d, Y') }}
View @if($card->status !== 'terminated') @if($card->balance > 0) @endif @if($card->status === 'active')
@csrf
@elseif($card->status === 'frozen')
@csrf
@endif
@csrf
@endif
{{ $cards->links() }}
@else

No virtual cards found

Get started by assigning a virtual card to a user.

@endif
@include('admin.virtual-cards.partials.credit-debit-modals') @endsection