@if($walletBalances->isNotEmpty()) @php $defaultWallet = $walletBalances->firstWhere('is_default', true) ?? $walletBalances->first(); $baseCurrencyCode = $defaultWallet['code'] ?? siteCurrency('code'); $baseCurrencySym = $defaultWallet['symbol'] ?? siteCurrency('symbol'); $currencyCardCount = $walletBalances->count(); $totalWallets = (int) $walletBalances->sum(fn ($wallet) => (int) ($wallet['count'] ?? 0)); $totalCurrencies = max((int) ($defaultWallet['source_currency_count'] ?? $currencyCardCount), $currencyCardCount); $activeCurrencies = max((int) ($defaultWallet['active_currency_count'] ?? 0), $walletBalances->where('status', true)->count()); @endphp
{{ __('Live balances across every active wallet currency on the platform.') }}