@extends('layouts.admin-sidebar') @section('title', 'Virtual Cards Analytics') @section('page-title', 'Virtual Cards Analytics') @section('page-description', 'Analytics and insights for virtual cards') @section('content')
{{ number_format($count) }}
{{ $status }}
No virtual cards found in the system.
{{ number_format($count) }}
{{ $type }}
No virtual cards found in the system.
No card creation data for the last 12 months.
No virtual card transaction data for the last 12 months. This may be because the virtual_card_id column is not yet available in the transactions table, or no transactions have been processed yet.
Total Virtual Cards
@php $totalCards = is_array($analytics['cards_by_status'] ?? null) ? array_sum($analytics['cards_by_status']) : 0; @endphp {{ number_format($totalCards) }}
This Month's Creations
@php $currentMonth = now()->format('Y-m'); $thisMonthCount = isset($analytics['monthly_creations'][$currentMonth]) ? $analytics['monthly_creations'][$currentMonth] : 0; @endphp {{ number_format($thisMonthCount) }}
Total Transaction Volume
@php $totalVolume = is_array($analytics['transaction_volume'] ?? null) ? array_sum($analytics['transaction_volume']) : 0; @endphp ₦{{ number_format($totalVolume, 2) }}