@extends('layouts.app') @section('title') Prepaid Card {{ $card->mobile_number }} | {{ config('app.name') }} @endsection @php $badge = fn ($status) => \App\Http\Controllers\IserveuCardAdminController::statusBadge($status); $cardData = ($details['status'] ?? false) ? $details['data'] : null; @endphp @section('content')

Prepaid Card · {{ $card->full_name ?: $card->mobile_number }}

@unless ($ready)
Live actions are disabled: iServeU is off, its credentials are incomplete, or this {{ $card->mode === 'live' ? 'live' : 'UAT' }} card does not match the API mode selected in Settings > iServeU Card.
@endunless
{{-- Customer + KYC --}}
Customer
{{ $card->mode === 'live' ? 'LIVE' : 'UAT' }}
@if ($card->physical_status) @endif
Name{{ trim($card->title . ' ' . $card->full_name) ?: '-' }}
Mobile{{ $card->mobile_number }}
Email{{ $card->email ?: '-' }}
ID No{{ $card->user?->access_code ?? '-' }}
Onboarding{!! $badge($card->onboard_status ?? 'NOT_ONBOARDED') !!} {{ $card->onboard_status_desc ?? ($card->onboard_status ? '' : 'Waiting for the customer to onboard in the app, or onboard them from Prepaid Cards → Onboard Customer with their ID No.') }}
Physical Card{!! $badge($card->physical_status) !!} {{ $card->physical_status_desc }}
KYC Type{{ $card->kyc_type ?: '-' }}
Source{{ ucfirst($card->source) }}{{ $card->bulkRequest?->sr_number ? ' · ' . $card->bulkRequest->sr_number : '' }}
Created{{ $card->created_at->format('d-m-Y h:i A') }}
Last Sync{{ $card->synced_at?->format('d-m-Y h:i A') ?? 'Never' }}
@canAccess('payments-prepaid-card', 'Update')
@csrf
@endcanAccess
@if ($card->onboard_status === 'INPROGRESS')
KYC OTP Verification

The card is issued after the customer's mobile OTP is verified. @if ($card->mode !== 'live')
UAT: no SMS is sent; the OTP is 123456. @endif

@canAccess('payments-prepaid-card', 'Update')
@csrf
@if ($card->kyc_otp_ref_id)
@csrf
OTP ref: {{ $card->kyc_otp_ref_id }} @endif @endcanAccess
@endif
{{-- Card --}}
Card
{!! $badge($card->card_status) !!}
@if ($card->onboard_status === 'CARD_FAILED')
iServeU onboarded the customer but did not create the card: {{ $card->onboard_status_desc }} Fund the pool wallet, then press Sync from iServeU. Card actions stay hidden until the card exists.
@endif @if (!$card->card_ref_no)

No card yet. The card reference is issued when onboarding succeeds.

@else
ECOM365 Xpress RuPay
{{ $cardData['card_number_masked'] ?? '•••• •••• •••• ' . ($card->last_four ?: '••••') }}
{{ $cardData['name_on_card'] ?? ($card->full_name ?: 'CARD HOLDER') }} {{ $cardData['expiry'] ?? '••/••' }}
Card ref {{ $card->card_ref_no }} · {{ $card->is_virtual ? 'Virtual' : 'Physical' }} @if ($cardData && !$cardData['card_number_masked']) · card number/expiry need the card-data key from iServeU @endif @if ($ready && $card->isOnboarded() && ($cardData['card_number_masked'] ?? null)) @canAccess('payments-prepaid-card', 'Approval')
@endcanAccess @endif @if ($cardData && str_starts_with((string) ($cardData['templateURL'] ?? ''), 'https://'))

Card design (from iServeU)

iServeU card design, template {{ $cardData['templateId'] ?? '' }} Template {{ $cardData['templateId'] ?? '-' }}. The number, expiry and name printed on it are iServeU's sample text, not this customer's.
@endif

Balance

{{ $card->balance === null ? '-' : '₹' . number_format((float) $card->balance, 2) }}

{{ $card->balance_at ? 'as of ' . $card->balance_at->format('d-m-Y h:i A') : '' }} @if ($cardData) @foreach (['Online' => ['isEcomAllowed', 'ecom_limit'], 'POS' => ['isPosAllowed', 'pos_limit'], 'Contactless' => ['isContactlessAllowed', 'contactless_limit'], 'ATM' => ['isAtmAllowed', 'atm_limit'], 'IMPS' => ['isImpsAllowed', 'imps_limit']] as $label => [$flag, $limit]) @endforeach
ChannelAllowedLimit
{{ $label }} {!! !empty($cardData[$flag]) ? 'Yes' : 'No' !!} ₹{{ number_format((float) ($cardData[$limit] ?? 0)) }}
@elseif ($details)
{{ $details['message'] }}
@endif
@endif
@if ($card->isOnboarded())
{{-- Load money --}}
Load Money (from pool)
@canAccess('payments-prepaid-card', 'Approval') @if ($pendingLoad)
OTP sent for ₹{{ number_format($pendingLoad['amount'], 2) }}. Enter the OTP within 10 minutes.
@csrf

Or send a new OTP:

@endif
@csrf @php $limits = ($product['status'] ?? false) ? $product['data'] : ['min_load' => 10, 'max_load' => 2000]; @endphp

Money moves from the iServeU pool wallet to this card. The 4-digit OTP goes to ECOM365's registered program mobile, not the customer's. @if ($card->mode !== 'live') UAT OTP: 1234. @endif

@else

You don't have permission to load cards.

@endcanAccess
{{-- Card status --}}
Card Status
@canAccess('payments-prepaid-card', 'Update') @php // New cards arrive INACTIVE and need ACTIVATE once (verified on UAT 2026-10-26). $activate = in_array($card->card_status, ['TEMPBLOCK', 'INACTIVE'], true); $activateLabel = $card->card_status === 'INACTIVE' ? 'Activate' : 'Unblock'; @endphp
@csrf @if ($card->card_status === 'INACTIVE')

New cards are issued inactive. Activate before the customer uses it.

@endif
@csrf
@else

You don't have permission to change the card status.

@endcanAccess
@canAccess('payments-prepaid-card', 'Create')
Physical Card {!! $card->physical_status ? $badge($card->physical_status === 'ORDERED' ? 'SUCCESS' : 'FAILED') : '' !!} @if ($card->physical_status === 'ORDERED') Ordered {{ $card->physical_ordered_at?->format('d-m-Y h:i A') }}{{ $card->xpressCard ? ' for Xpress Card order ' . $card->xpressCard->orderno : '' }}. @elseif ($card->physical_status === 'FAILED') Last order failed: {{ $card->physical_status_desc }} @else Ordered automatically when this customer's Xpress Card purchase is approved. @endif
Show form

Orders a personalised RuPay card for this card reference (personalisation INDENT, green PIN). Product fee: Physical Card Cost. Check the pool balance first.

@csrf
@endcanAccess @endif
@if ($card->isOnboarded())
Mini Statement
@if ($statement && $statement['status'])
@forelse ($statement['data'] as $row) @empty @endforelse
DateTypeReferenceAmount
{{ $row['date'] ? \Carbon\Carbon::parse($row['date'])->format('d-m-Y h:i A') : '-' }} {{ $row['type'] ?: ($row['is_credit'] ? 'CREDIT' : 'DEBIT') }} {{ $row['reference'] ?? '-' }} {{ $row['is_credit'] ? '+' : '-' }}₹{{ number_format($row['amount'], 2) }}
No transactions yet.
@else

{{ $statement['message'] ?? 'Not loaded.' }}

@endif
@endif
Activity
@forelse ($card->activities as $activity) @empty @endforelse
DateActionResultAmountBy
{{ $activity->created_at->format('d-m-Y h:i A') }} {{ str_replace('_', ' ', strtoupper($activity->action)) }} @if (!empty($activity->meta['remarks'])) {{ $activity->meta['remarks'] }} @endif {{ $activity->success ? 'OK' : 'Failed' }} {{ $activity->message }} {{ $activity->amount !== null ? '₹' . number_format((float) $activity->amount, 2) : '' }} {{ trim(($activity->creator->name ?? '') . ' ' . ($activity->creator->last_name ?? '')) ?: '-' }}
No activity yet.
@canAccess('payments-prepaid-card', 'Approval') @endcanAccess @endsection @section('scripts') @endsection