@php // Helper to get RGB for CSS variables if(!function_exists('hex2rgb_local')) { function hex2rgb_local($hex) { $hex = str_replace('#', '', $hex ?? '#6366f1'); 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"; } } $primaryRgb = $primaryRgb ?? hex2rgb_local($primaryColor ?? '#6366f1'); $allSettings = \App\Models\Setting::group('auth'); @endphp @yield('title') — {{ $brandName }} @vite(['resources/css/app.css', 'resources/js/app.js'])
@if($logoUrl) {{ $brandName }} @else ⬢ @endif
{{ $brandName }}
Back To Home
@yield('content')
@yield('scripts')