@extends('layouts.app') @section('title') Prepaid Card Inventory | {{ config('app.name') }} @endsection @section('content')
{{ $pool['message'] ?? 'Not available' }}
@endifCard 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.
| S.No | Ordered On | Product | Category | Nature | Cards | Status |
|---|---|---|---|---|---|---|
| {{ $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. | ||||||
{{ $inventory['message'] ?? 'Not loaded.' }}
@endif| Date | Lot Ref | Nature | Cards | Ship To | Last 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'] ?? '-' }} |
{{ ($shipping['status'] ?? false) ? 'No shipments yet.' : ($shipping['message'] ?? 'Not loaded.') }}
@endif