@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 }} {{-- Tailwind & Alpine --}} {{-- App Style --}} @vite('resources/css/app.css') @livewireStyles {{-- Top Navigation --}} @include('layouts.partials.navigation')
{{-- Sidebar --}}
@include('layouts.partials.sidebar')
{{-- Wrapper untuk Main + Footer --}}
{{-- Main Content --}}
@yield('content')
{{-- Footer --}} @include('layouts.partials.footer')
{{-- Floating Theme Toggle --}}
{{-- Tombol Tetap: Toggle Auto Hide Sidebar --}}
@livewireScripts @vite('resources/js/app.js') @stack('scripts') {{-- ✅ Ini penting untuk menjalankan push script dari child Blade --}}