@php use App\Models\Language; use App\Models\Settings; $setting = Settings::where('type', 'app_logo')->first(); $appLogoPath = optional($setting)->message; // Get current locale from session or fall back to app default $currentLang = session('locale') ?? app()->getLocale(); // Get the language from DB or fallback to null $language = Language::where('code', $currentLang)->first(); // Determine if it's an RTL language $isRTL = optional($language)->isRTL == 1; @endphp @yield('title') || {{ config('app.name') }} @include('layouts.header_script') @yield('css') @php $setting = getSetting(); $primary_color = isset($setting['primary_color']) ? $setting['primary_color'] : '#1B2D51'; $secondary_color = isset($setting['secondary_color']) ? $setting['secondary_color'] : '#EE2934'; @endphp
@include('layouts.header') @include('layouts.sidebar')
@yield('content')
@include('layouts.footer_script') @yield('js') @yield('script')