@php // Dynamic brand name, but DB-tolerant: a 500 caused by the database being // down must not crash the error page itself, so fall back to the .env name. $__brandName = (string) rescue( fn() => brand_name(), brand_name(), false, ); // Brand mark, in order of preference: // 1. the admin's uploaded LOGO → shown on its own (it already carries // the wordmark, so repeating the name beside it reads as a stutter) // 2. the uploaded FAVICON → icon + brand name // 3. the bundled default mark → icon + brand name // // Every lookup is wrapped: these settings live in the database, and this // layout renders the 500 page that a DB outage itself produces. An // unguarded SystemSetting::get() here would throw inside the error // handler and turn a readable 500 into a blank white page. $__brandLogo = rescue(fn() => \App\Support\Brand::logoUrl(), null, false); $__brandIcon = rescue(fn() => \App\Support\Brand::faviconUrl(), null, false) ?: asset('images/brand-mark.png'); @endphp
{{-- Soft background blobs / matches the auth-art aesthetic --}}
{{-- Top brand --}} @if ($__brandLogo) {{ $__brandName }} @else {{ $__brandName }} {{ $__brandName }} @endif {{-- Big error code --}}
{{ $eyebrow ?? 'Something went wrong' }}
{{ $code }}

{{ $headline }}

{{ $body }}

{{-- Actions --}}
Go back @php // Pages may override the primary CTA (e.g. the maintenance 503 // points admins at sign-in / sign-out). Falls back to the // dashboard/login default. $__ctaUrl = $ctaUrl ?? (auth()->check() ? url('/dashboard') : url('/login')); $__ctaLabel = $ctaLabel ?? (auth()->check() ? 'Back to dashboard' : 'Sign in'); @endphp {{ $__ctaLabel }}
{{-- Optional support footer --}}