{{-- Apply the stored theme before the first paint. TallStackUI's tallstackui_darkTheme() keeps it in localStorage ("dark-theme"), but only runs once Alpine starts, which would flash the light theme. Like the package, any value other than dark/light (true/false) means "system". wire:navigate replaces the attributes with the server's, which drops the class, so it is applied again on every page swap. --}} @include('partials.tallstackui-script') @livewireStyles @vite(['resources/css/app.css', 'resources/js/app.js']) {{ __('layout.skip_to_content') }} @auth
{{ app(\App\Modules\Shared\Application\UseCases\CompanyDetailsStore::class)->menuName() }}
{{ __('layout.signed_in_as', ['name' => auth()->user()->name]) }} @include('partials.theme-toggle')
@csrf
@else
@include('partials.theme-toggle')
@endauth
{{ $slot }}
@livewireScripts