@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 ============ --}} @yield('title', 'Tenseal — Escrow, Inventory, Marketplace & Developer API for African Commerce') {{-- Canonical + alternates --}} {{-- ============ OPEN GRAPH (Facebook, LinkedIn, WhatsApp link previews) ============ --}} {{-- ============ TWITTER / X CARDS ============ --}} {{-- ============ Apple / Mobile PWA hints ============ --}} {{-- ============ Baseline JSON-LD: Organization + WebSite (on every page) ============ --}} {{-- Page-specific JSON-LD blocks stack in here --}} @stack('jsonld') {{-- Currency switcher styles — inlined in so the dropdown is fully styled (and hidden) on first paint. Previously this was a @stack('styles')
Dark
Light
System
@auth Dashboard @else Login Sign Up @endauth
@yield('content') @stack('scripts') @include('components.icon-tooltips')