@php use App\Models\ThemeSetting; use App\Models\Profile; $profile = Profile::first(); $theme = ThemeSetting::where('aktif', true)->first() ?? ThemeSetting::first(); $institusiNama = $profile?->nama_perusahaan ?? 'Nama Institusi'; $logoPath = $profile?->logo ? asset('storage/' . $profile->logo) : asset('images/default-logo.png'); $defaultMode = $theme?->default_mode ?? 'light'; $primaryColor = $theme?->primary_color ?? '#1d4ed8'; $h1Color = $theme?->h1_color ?? '#111827'; $h2Color = $theme?->h2_color ?? '#374151'; $pColor = $theme?->p_color ?? '#4B5563'; $bgImage = $theme?->main_bg_image ? asset('storage/' . $theme->main_bg_image) : null; @endphp {{ $institusiNama }} @livewireStyles @if ($bgImage)
@endif {{-- ✅ Perbaikan: Livewire Navbar --}}
@include('layouts.partials.user.navbar')
@yield('content')
{{-- ✅ Perbaikan: Livewire Footer --}} {{-- Floating Theme Toggle --}}
{{-- Floating WhatsApp Button --}} @php $waNumber = preg_replace('/[^0-9]/', '', $profile?->telepon ?? ''); $waLink = 'https://wa.me/' . $waNumber; @endphp
@livewireScripts @if (session('message')) @endif