@extends('layouts.mobile') @section('title', 'Virtual Cards') @section('content')
@if(!auth()->user()->hasCompletedKyc())

KYC Verification Required

Complete your identity verification to request virtual cards.

Complete KYC
@endif

Total Cards

{{ $cards->count() ?? 0 }}

Active Cards

{{ $cards->where('status', 'active')->count() ?? 0 }}

@if(auth()->user()->hasCompletedKyc())
Request New Virtual Card
@endif @if($cards && $cards->count() > 0)

My Cards

@foreach($cards as $card)

{{ $card->card_type }} Card

{{ $card->currency }}

{{ ucfirst($card->status) }}

•••• •••• •••• {{ substr($card->masked_pan ?? '0000', -4) }}

Available Balance

{{ $card->currency }} {{ number_format($card->balance ?? 0, 2) }}

Expires

{{ $card->expires_at ? \Carbon\Carbon::parse($card->expires_at)->format('m/y') : '--/--' }}

@if($card->status === 'active') @else @endif

Daily Limit

{{ $card->currency }} {{ number_format($card->daily_limit ?? 0, 0) }}

Monthly Limit

{{ $card->currency }} {{ number_format($card->monthly_limit ?? 0, 0) }}

Brand

{{ ucfirst($card->brand ?? 'Visa') }}

@endforeach
@else

No virtual cards yet

@if(auth()->user()->hasCompletedKyc())

Request your first virtual card to start making online payments

@else

Complete KYC verification to request virtual cards

Complete KYC @endif
@endif

Card Benefits

Secure online payments worldwide
Instant freeze/unfreeze controls
Real-time transaction tracking
International payment support
@push('scripts') @endpush @endsection