<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@yield('title', 'SIM Jaga RSUD')</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="{{ asset('style.css') }}">
    <link rel="stylesheet" href="{{ asset('laravel.css') }}">
</head>
<body>
    <aside class="sidebar">
        <div class="brand"><div class="brand-mark">+</div><div><strong>SIM Jaga</strong><span>RSUD Sehat Sentosa</span></div></div>
        <nav>
            <a class="nav-item {{ request()->routeIs('schedule') ? 'active' : '' }}" href="{{ route('schedule') }}"><span>H</span> Halaman Depan</a>
            <a class="nav-item {{ request()->routeIs('admin.*') ? 'active' : '' }}" href="{{ route('admin.dashboard') }}"><span>A</span> Back Office Admin</a>
        </nav>
        <div class="sidebar-bottom"><div class="help-card"><span>SIM Jaga Laravel</span><p>Kelola jadwal dan data operasional perawat secara terpusat.</p></div></div>
    </aside>
    <main>
        <header class="topbar">
            <div class="mobile-brand">+ <strong>SIM Jaga</strong></div>
            <div class="app-caption">@yield('caption', 'Jadwal Perawat')</div>
            <div class="profile"><div class="avatar">NA</div><div><strong>Ns. Nur Aini</strong><span>Administrator</span></div></div>
        </header>
        <section class="content">
            @if(session('success'))<div class="flash success">{{ session('success') }}</div>@endif
            @if($errors->any())<div class="flash error">{{ $errors->first() }}</div>@endif
            @yield('content')
        </section>
    </main>
    @yield('modals')
    <script src="{{ asset('laravel.js') }}"></script>
</body>
</html>
