count(); return [ Stat::make('مجموع موجودی کیف پول‌ها', number_format($totalBalance) . ' ریال') ->description('موجودی کل کاربران') ->descriptionIcon('heroicon-o-wallet') ->color('success'), Stat::make('مجموع واریزی‌ها', number_format($totalDeposited) . ' ریال') ->description('کل مبالغ شارژ شده') ->descriptionIcon('heroicon-o-arrow-down') ->color('info'), Stat::make('مجموع برداشت‌ها', number_format($totalWithdrawn) . ' ریال') ->description('کل مبالغ برداشت شده') ->descriptionIcon('heroicon-o-arrow-up') ->color('warning'), Stat::make('تراکنش‌های در انتظار', number_format($pendingCount)) ->description('از کل ' . number_format($transactionCount) . ' تراکنش') ->descriptionIcon('heroicon-o-clock') ->color($pendingCount > 0 ? 'danger' : 'success'), ]; } }