{{-- Remvo modal fonts + styles --}} {{-- ▶ NEW: Pilot Mode chrome (appbar, drawer, mobile tabs) --}} {{-- ▶ NEW: per-page CSS pushed by child blades (e.g. pilot pages) --}} @stack('extra-css')
{{-- ════════════════════════════════════════════════════════════ APPBAR — sharp logged-in topbar Replaces the old #topnav. Logo + nav + wallet pill + user pill. ════════════════════════════════════════════════════════════ --}} @php $u = auth()->user(); $initials = ''; $displayName = ''; if ($u) { // GE-AS convention: ->username is the canonical display name // (e.g. "Brick Dev"). Falls through to name → first_name+last_name // → email only if username is empty. $displayName = trim($u->username ?? ''); if ($displayName === '') { $displayName = trim($u->name ?? '') ?: trim(($u->first_name ?? '') . ' ' . ($u->last_name ?? '')) ?: trim($u->first_name ?? '') ?: ($u->email ?? 'User'); } // Initials: split on whitespace. // "Brick Dev" → ["Brick","Dev"] → "BD" // "Bricky" → ["Bricky"] → "BR" (first + second char) $parts = preg_split('/\s+/', $displayName, -1, PREG_SPLIT_NO_EMPTY); if (count($parts) >= 2) { $initials = strtoupper(substr($parts[0], 0, 1) . substr($parts[1], 0, 1)); } elseif (count($parts) === 1) { $initials = strtoupper(substr($parts[0], 0, 2)); } else { $initials = 'U'; } } $hasAi = $u && $u->investment()->whereIn('status', [2, 3])->exists(); $isMarketer = $u && $u->type === 'marketer'; $hasVendor = $u && method_exists($u, 'vendor') && $u->vendor()->exists(); @endphp
@auth
${{ number_format($u->balance, 2) }} {{-- User dropdown panel --}}
@endauth
@auth {{-- ════════════════════════════════════════════════════════════ MOBILE DRAWER — hamburger-triggered slide-in nav Mirrors live component 1:1, plus Pilot Mode inserted at position #2 (after My Store). ════════════════════════════════════════════════════════════ --}}
@endauth @yield('content') {{-- ════════════════════════════════════════════════════════════ FOOTER ════════════════════════════════════════════════════════════ --}} @auth {{-- ════════════════════════════════════════════════════════════ MOBILE BOTTOM TAB BAR (visible <900px) ════════════════════════════════════════════════════════════ --}} @endauth {{-- Google Translate widget --}}
@csrf
{{-- Remvo modal --}} {{-- ▶ NEW: Pilot Mode chrome JS (drawer + appbar dropdowns) --}} {{-- ▶ NEW: per-page JS pushed by child blades --}} @stack('extra-js')