@php
$cardData = [
['title' => 'Total Users', 'value' => $totalUsers, 'icon' => 'fas fa-users', 'gradient' => 'linear-gradient(135deg, #3498db, #1abc9c)'],
['title' => 'Total Trades', 'value' => $totalTrades, 'icon' => 'fas fa-chart-line', 'gradient' => 'linear-gradient(135deg, #28a745, #4caf50)'],
['title' => 'Total Transactions', 'value' => $totalTransactions, 'icon' => 'fas fa-exchange-alt', 'gradient' => 'linear-gradient(135deg, #f1c40f, #f39c12)'],
['title' => 'Total Wallet Balance', 'value' => '$' . number_format((float) $totalBalance, 2), 'icon' => 'fas fa-wallet', 'gradient' => 'linear-gradient(135deg, #e74c3c, #c0392b)'],
['title' => 'Total Deposits', 'value' => '$' . number_format((float) $totalDeposits, 2), 'icon' => 'fas fa-arrow-circle-down', 'gradient' => 'linear-gradient(135deg, #6c5ce7, #8e44ad)'],
['title' => 'Total Withdrawals', 'value' => '$' . number_format((float) $totalWithdrawals, 2), 'icon' => 'fas fa-arrow-circle-up', 'gradient' => 'linear-gradient(135deg, #fd79a8, #ff4757)'],
['title' => 'Active Trading Accounts', 'value' => $activeTradingAccounts, 'icon' => 'fas fa-user-cog', 'gradient' => 'linear-gradient(135deg, #00b894, #2ecc71)'],
['title' => 'Average Trade Size', 'value' => '$' . number_format((float) $averageTradeSize, 2), 'icon' => 'fas fa-chart-area', 'gradient' => 'linear-gradient(135deg, #ffb142, #ff793f)'],
['title' => 'Revenue Analysis', 'value' => '$' . number_format((float) $revenueAnalysis->sum(), 2), 'icon' => 'fas fa-coins', 'gradient' => 'linear-gradient(135deg, #e67e22, #d35400)'],
['title' => 'Pending Withdrawals', 'value' => '$' . number_format((float) $pendingWithdrawals, 2), 'icon' => 'fas fa-clock', 'gradient' => 'linear-gradient(135deg, #ff9f43, #ff6b6b)'],
['title' => 'Users with Active Trades', 'value' => $usersWithActiveTrades, 'icon' => 'fas fa-user-chart', 'gradient' => 'linear-gradient(135deg, #0984e3, #74b9ff)'],
['title' => 'New Users (Last 30 Days)', 'value' => $newUsersLastMonth, 'icon' => 'fas fa-user-plus', 'gradient' => 'linear-gradient(135deg, #55efc4, #00cec9)'],
];
@endphp
@foreach ($cardData as $card)
{{ $card['title'] }}
{{ $card['value'] }}
@endforeach