@php use App\Models\Profile; use App\Models\ThemeSetting; $profile = Profile::first(); $theme = ThemeSetting::where('aktif', true)->first(); $institutionName = $profile?->nama_perusahaan ?? 'Nama Institusi'; $logoPath = $profile?->logo ? asset('storage/' . $profile->logo) : asset('images/default-logo.png'); $primaryColor = $theme?->primary_color ?? '#1d4ed8'; $h1Color = $theme?->h1_color ?? '#111827'; $h2Color = $theme?->h2_color ?? '#374151'; $pColor = $theme?->p_color ?? '#4B5563'; @endphp
@yield('title', 'Dashboard Admin') | {{ $institutionName }}
{{-- Dark Mode Logic --}} {{-- Tailwind + Alpine --}} {{-- Trix --}}
{{-- ✅ Load jQuery dulu SEBELUM select2 --}} {{-- ✅ Select2 setelah jQuery --}}
{{-- Styles --}} @vite('resources/css/app.css') @livewireStyles {{-- Navbar --}} @include('layouts.partials.user.navbar') {{-- Tombol Sidebar & Dashboard --}}
{{-- Tombol ke Dashboard --}}
{{-- Toggle Sidebar --}}
{{-- Sidebar --}}
{{-- Tombol Collapse (desktop) --}}
@include('layouts.admin.sidebar')
{{-- Main Content + Footer --}}
@yield('content')
@include('layouts.partials.footer')
{{-- Theme Switcher --}}
$el.classList.remove('animate-spin'), 500); " class="p-3 rounded-full bg-white dark:bg-gray-700 border dark:border-gray-600 shadow hover:scale-110 transition" title="Ganti Tema">
🤖
💬 Chat AI
✖
Mulai percakapan dengan AI...
Kirim
➕ Tambah Pasien
✖
🧍 Form Tambah Cepat Pasien
@csrf
Nama Lengkap
Jenis Kelamin
-- Pilih --
Laki-laki
Perempuan
Lainnya
Tanggal Lahir
Nomor HP
Nomor KTP
Alamat
💾 Simpan
{{-- Scripts --}} @livewireScripts @vite('resources/js/app.js') @stack('scripts') @yield('scripts')