@extends('layouts.app') @section('title') Prepaid Card Inventory | {{ config('app.name') }} @endsection @section('content')

Prepaid Card Inventory

@include('backend.iserveu-cards.partials.mode-alert')
Pool Wallet
@if ($pool && $pool['status'])

₹{{ number_format($pool['data']['available_balance'], 2) }}

@if ($pool['data']['available_balance'] <= 0) Card creation, card fees and loads fail until the pool is funded. @endif @else

{{ $pool['message'] ?? 'Not available' }}

@endif
Card Product
@include('backend.iserveu-cards.partials.product-summary', ['product' => $product])
@canAccess('payments-prepaid-card', 'Create')
Order Card Inventory

Card stock must exist before customers can be issued cards. Virtual stock is for app cards; physical stock is for non-personalised cards shipped in bulk.

@csrf
@endcanAccess
Ordered Inventory
@if ($inventory && $inventory['status'])
@forelse ($inventory['data'] as $row) @empty @endforelse
S.NoOrdered OnProductCategoryNatureCardsStatus
{{ $loop->iteration }} {{ !empty($row['createdDate']) ? \Carbon\Carbon::parse($row['createdDate'])->format('d-m-Y h:i A') : '-' }} {{ $row['productName'] ?? '-' }} {{ $row['productcategory'] ?? $row['productCategory'] ?? '-' }} {{ ($row['cardNature'] ?? '') === 'P' ? 'Physical' : 'Virtual' }} {{ number_format((int) ($row['orderedCards'] ?? 0)) }} {!! \App\Http\Controllers\IserveuCardAdminController::statusBadge($row['status'] ?? null) !!}
No inventory ordered yet.
@else

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

@endif
Card Shipping Report
@if ($shipping && $shipping['status'] && count($shipping['data']))
@foreach ($shipping['data'] as $row) @endforeach
DateLot RefNatureCardsShip ToLast Ref No
{{ !empty($row['created_date']) ? \Carbon\Carbon::parse($row['created_date'])->format('d-m-Y') : '-' }} {{ $row['genlotrefno'] ?? '-' }} {{ ($row['card_nature'] ?? '') === 'P' ? 'Physical' : ($row['card_nature'] ?? '-') }} {{ $row['card_count'] ?? '-' }} {{ collect([$row['address1'] ?? null, $row['address2'] ?? null, $row['city'] ?? null])->filter()->implode(', ') ?: '-' }} {{ $row['endrefno'] ?? '-' }}
@else

{{ ($shipping['status'] ?? false) ? 'No shipments yet.' : ($shipping['message'] ?? 'Not loaded.') }}

@endif
@endsection