@php // Shared currency data — supported currencies + rates from NGN base. // Consumed by the nav currency switcher and the .ts-money JS rewriter below. $__supportedCurrencies = \App\Modules\Inventory\Services\CurrencyService::SUPPORTED; $__currencyRates = ['NGN' => 1.0]; try { foreach (array_keys($__supportedCurrencies) as $__q) { if ($__q === 'NGN') continue; $__r = \App\Modules\Inventory\Services\CurrencyService::getRate('NGN', $__q); if ($__r !== null) { $__currencyRates[$__q] = (float) $__r; } } } catch (\Throwable $__e) { /* DB not ready — keep NGN only */ } // Reasonable fallback rates when DB has no entries (updated via admin Currency Rates). $__fallbackRates = [ 'USD' => 0.00065, 'EUR' => 0.00060, 'GBP' => 0.00051, 'GHS' => 0.0097, 'KES' => 0.084, 'ZAR' => 0.012, 'XOF' => 0.39, 'CAD' => 0.00089, ]; foreach ($__fallbackRates as $__c => $__v) { if (!isset($__currencyRates[$__c])) { $__currencyRates[$__c] = $__v; } } @endphp
{{-- ============ PRIMARY SEO ============ --}}