{{-- CSRF Token --}}
{{ config('app.name', 'ERP') }}
{{-- Fonts --}}
{{-- Hook na dodatkowe style/JS z widoków --}} @stack('styles') @stack('head-scripts') {{-- Vite: SCSS + JS --}} @vite(['resources/sass/app.scss', 'resources/js/app.js'])
{{-- TOP NAVBAR --}}
{{-- Sidebar toggle (mobile) tylko dla zalogowanych --}} @auth
@endauth
{{ config('app.name', 'ERP') }}
{{-- Left side of top navbar --}}
@auth
Dashboard
@endauth
{{-- Środkowy pasek wyszukiwania (desktop) --}} @auth
@endauth {{-- Right side of top navbar --}}
@guest @if (Route::has('login'))
{{ __('Login') }}
@endif @else {{-- Ikona wiadomości + dropdown z ostatnimi rozmowami --}}
{{-- kropka pokazuje się gdy są nieprzeczytane --}}
Ostatnie wiadomości
Brak nowych wiadomości.
Przejdź do modułu wiadomości
{{-- Toast powiadomień wiadomości – wysuwa się spod ikonki wiadomości --}}
{{ Auth::user()->name }}
{{ __('Logout') }}
@csrf
@endguest
{{-- Toast powiadomień wiadomości – wysuwa się spod ikonki wiadomości --}}
{{-- MAIN LAYOUT --}} @auth @php // pomocnicze „flagi” aktywnych sekcji w sidebarze $isSidebarDashboard = request()->routeIs('home'); $isSidebarFaktury = request()->routeIs('faktury.*'); $isSidebarKontrahenci = request()->routeIs('faktury.kontrahenci.*'); // na razie spinamy z modułem faktur $isSidebarKsiegowosc = request()->routeIs('ksiegowosc.*'); // placeholder $isSidebarConfig = request()->routeIs('config.*'); $isSidebarWiadomosci = request()->routeIs('wiadomosci.*'); $isSidebarPm = request()->routeIs('pm.*'); $isSidebarTerminarz = request()->routeIs('terminarz.*'); @endphp {{-- ZALOGOWANY: sidebar + content w „panelu” --}}
{{-- Sidebar --}} {{-- Backdrop dla sidebaru na mobile --}}
{{-- Content (scroll tylko tutaj) --}}
@hasSection('page-title')
@yield('page-title')
@hasSection('page-actions')
@yield('page-actions')
@endif
@endif {{-- Widoki rysują własne karty / module-shell --}} @yield('content')
@endauth @guest {{-- NIEZALOGOWANY: bez sidebara, ale ten sam wrapper (scroll tylko w mainie) --}}
@yield('content')
@endguest
{{-- prosty JS do sidebara (mobile) --}} @stack('scripts')