@php $sysSettings = \Illuminate\Support\Facades\DB::table('system_settings')->pluck('value', 'key')->toArray(); $appName = $sysSettings['app_name'] ?? 'Connect'; $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"; } } $brandColor = '#0052FF'; // Default premium blue if (isset($currentTenant)) { $tenantSettings = is_string($currentTenant->settings) ? json_decode($currentTenant->settings, true) : $currentTenant->settings; $brandColor = $tenantSettings['brand_color'] ?? '#0052FF'; } $brandColorRgb = hex2rgb($brandColor); @endphp @if($appFavicon) @else @endif @yield('title', 'Connect - Employee Database') @yield('styles')
@if(session('success')) @endif @if($errors->any()) @endif @yield('content')
@yield('scripts')