@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') | {{ $institutionName }}
{{-- Dark Mode --}}
{{-- Tailwind + Alpine --}}
@vite('resources/css/app.css')
@livewireStyles
{{-- Navbar --}}
@include('layouts.partials.user.navbar')
{{-- Tombol Toggle Sidebar & Dashboard --}}
{{-- Tombol ke Dashboard --}}
{{-- Toggle Sidebar --}}
{{-- Sidebar --}}
{{-- Main Content + Footer --}}
@yield('content')
@include('layouts.partials.footer')
{{-- Tombol Theme --}}
@livewireScripts
@vite('resources/js/app.js')
@stack('scripts')