@php $sysSettings = \Illuminate\Support\Facades\DB::table('system_settings')->pluck('value', 'key')->toArray(); $brandColor = $sysSettings['brand_color'] ?? '#f76707'; $appName = $sysSettings['app_name'] ?? 'Glix System Control'; $appLogo = $sysSettings['app_logo'] ?? null; $appLogoDark = $sysSettings['app_logo_dark'] ?? null; $appFavicon = $sysSettings['app_favicon'] ?? null; if (!function_exists('hex2rgb')) { function hex2rgb($hex) { $hex = str_replace("#", "", $hex); if(strlen($hex) == 3) { $r = hexdec(substr($hex,0,1).substr($hex,0,1)); $g = hexdec(substr($hex,1,1).substr($hex,1,1)); $b = hexdec(substr($hex,2,1).substr($hex,2,1)); } else { $r = hexdec(substr($hex,0,2)); $g = hexdec(substr($hex,2,2)); $b = hexdec(substr($hex,4,2)); } return "$r, $g, $b"; } } $brandColorRgb = hex2rgb($brandColor); @endphp @yield('title', 'Glix Corp - System Control Panel') @if($appFavicon) @else @endif
@if(session('success'))
@endif @if(session('error'))
@endif @if($errors->any())
@endif
@yield('content')
@yield('scripts')