{{-- Reward Loyalty - Proprietary Software Copyright (c) 2025 NowSquare. All rights reserved. See LICENSE file for terms. Admin Default Layout Base layout for admin pages including authentication and dashboard --}} @php $languages = $languages ?? ['all' => [], 'current' => []]; $routeName = request()->route() ? request()->route()->getName() : null; $routeDataDefinition = $dataDefinition->name ?? null; $isAuthPage = $authPage ?? false; @endphp @yield('page_title') @vite(['resources/css/app.css', 'resources/js/core.js', 'resources/js/admin.js']) @if($isAuthPage) @yield('content') @else @auth('admin')
{{-- Profile Menu Button --}}
{{-- Mobile Profile Dropdown --}}
{{-- User Info Header --}}

{{ auth('admin')->user()->name ?? trans('common.admin') }}

{{ auth('admin')->user()->email }}

{{-- Account Settings --}} {{ trans('common.account_settings') }}
{{-- Language Selector (Opens Modal) --}} @if (count($languages['all'] ?? []) > 1) @endif {{-- Theme Toggle --}}
{{-- Logout --}} {{ trans('common.logout') }}
@yield('content')
@else @yield('content') {{-- Theme toggle on auth pages (discrete, bottom-right) --}} @endauth @endif {{-- Language Selection Modal --}} @auth('admin') @endauth {{-- Agent Key One-Time Display Modal --}} @include('components.agent-key-modal') {{-- Toast Notifications --}}