{{ $title }}
{{ $message }}
@php use App\Models\SystemSetting; // Resolve branding with graceful fallback (mirrors HandleInertiaRequests::brandingShare()). try { $appName = SystemSetting::get('app_name') ?: config('saas.app_name', config('app.name')); $primary = SystemSetting::get('primary_color') ?: config('saas.branding.primary_color', '#467235'); $logoPath = SystemSetting::get('app_logo_path'); $logoUrl = $logoPath ? \Illuminate\Support\Facades\Storage::disk(SystemSetting::get('app_logo_disk', 'public'))->url($logoPath) : null; $faviconPath = SystemSetting::get('app_favicon_path'); $faviconUrl = $faviconPath ? \Illuminate\Support\Facades\Storage::disk(SystemSetting::get('app_favicon_disk', 'public'))->url($faviconPath) : null; } catch (\Throwable) { $appName = config('saas.app_name', config('app.name')); $primary = config('saas.branding.primary_color', '#467235'); $logoUrl = null; $faviconUrl = null; } // Pick readable text on the primary color from its relative luminance. $hex = ltrim($primary, '#'); if (strlen($hex) === 3) { $hex = $hex[0].$hex[0].$hex[1].$hex[1].$hex[2].$hex[2]; } [$r, $g, $b] = strlen($hex) === 6 ? [hexdec(substr($hex, 0, 2)), hexdec(substr($hex, 2, 2)), hexdec(substr($hex, 4, 2))] : [70, 114, 53]; $luminance = (0.2126 * $r + 0.7152 * $g + 0.0722 * $b) / 255; $onPrimary = $luminance > 0.6 ? '#20321d' : '#ffffff'; @endphp
{{ $message }}