@props([ 'title' => 'Dashboard', 'navKey' => 'dashboard', 'page' => null, 'hideHeader' => false, ])
{{-- Sub-folder base path (e.g. /public) so client-side AJAX honours the deploy location under a sub-directory. --}} {{-- Active currency symbol (workspace override → platform default) for chart JS so axes/tooltips follow the chosen currency, not '$'. --}} @php $faviconUrl = \App\Support\Brand::faviconUrl(); @endphp @if ($faviconUrl) @endif {{-- Server flash → toast. Any controller that does redirect()->with('status' / 'success' / 'error') ends up here as a meta tag, and resources/js/wa-toaster.js shows it on DOMContentLoaded. Keeps UI feedback consistent without each page rolling its own banner. --}} @php $flashVariant = session('error') ? 'error' : (session('warning') ? 'warn' : 'success'); $flashMessage = session('error') ?? (session('warning') ?? (session('success') ?? session('status'))); @endphp @if ($flashMessage) $flashVariant, 'message' => $flashMessage])'> @endif @php $__brandName = (string) \App\Models\SystemSetting::get('app_name', config('app.name', 'WaDesk')); @endphp