@extends('layouts.admin') @section('title', 'Card Requests') @section('content')
Customer Card Type Physical / Virtual Status Date Actions @forelse($requests ?? [] as $request) {{ $request->user->name ?? 'N/A' }} {{ $request->card_type_label ?? ucfirst($request->card_type ?? 'Standard') }} {{ ucfirst($request->is_physical ? 'Physical' : 'Virtual') }} {{ ucfirst($request->status) }} {{ $request->created_at->format('M d, Y H:i') }}
@if($request->status === 'pending')
@csrf
@endif
@empty

No card requests found.

@endforelse
@php $templatesJson = $templates->map(fn ($t) => [ 'id' => $t->id, 'name' => $t->name, 'card_type' => $t->card_type, 'card_network' => strtoupper($t->card_network), 'gradient_from' => $t->gradient_from, 'gradient_to' => $t->gradient_to, 'accent_color' => $t->accent_color, 'text_color' => $t->text_color, 'chip_color' => $t->chip_color, ])->values()->toJson(JSON_UNESCAPED_SLASHES); @endphp @foreach($requests ?? [] as $request) @if($request->status === 'pending')
@csrf
@endif @endforeach @push('scripts') @endpush @endsection