@include('partials.theme-mode-preflight') {{-- stylesheets --}} @include('partials.theme-mode-tenant-vars') @if (($snipeSettings) && ($snipeSettings->header_color)) @endif @if (($snipeSettings) && ($snipeSettings->custom_css)) @endif @include('partials.impersonation-banner') {{-- Login / error page header bar. Styled with the tenant's var(--main-theme-color) background so the uploaded logo lives in the same colored context it does on the logged-in app's top-nav. Without this, tenants who designed a logo for a colored navbar (e.g. white text on brand color) would see it float against a plain light or dark body background where it may not read well. Falls back to site_name text when no logo is uploaded so the bar has something meaningful in it. --}}
{{-- Authenticated visitors (e.g. hit a 404 or 403 mid-session) get a clickable logo that bounces them back to the app home. Unauthenticated visitors (login page, forgot password, error-while-logged-out) have nowhere useful to go — the app URL just redirects back to login — so the logo renders as a non-interactive . --}} @auth @if (($snipeSettings) && ($snipeSettings->logo!='')) @else {{ $snipeSettings->site_name ?? 'Snipe-IT' }} @endif @else @if (($snipeSettings) && ($snipeSettings->logo!='')) @else {{ $snipeSettings->site_name ?? 'Snipe-IT' }} @endif @endauth {{-- Light/dark toggle. Absolute-positioned on the right side of the header bar so the logo stays centered. Most login-page visitors will not use it; it's here so operators (and visual regression testing) can confirm both themes on pages that never authenticate. Wired up by the theme-mode-toggle partial included at the end of body. --}}
@yield('content')
@if (($snipeSettings) && ($snipeSettings->privacy_policy_link!='')) {{ trans('admin/settings/general.privacy_policy') }} @endif
{{-- Javascript files --}} @stack('js') @include('partials.theme-mode-toggle')