@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 --}}
{{-- Scripts --}} @livewireScripts @vite('resources/js/app.js') @stack('scripts') @yield('scripts')