@props(['code']) @php /** * The text is looked up from the code rather than passed in. * * Four of these codes have no hint, and the lang files say so with `null`. * Laravel's translator returns the KEY when a line resolves to null, so * `__('errors.404.hint')` printed "errors.404.hint" on the page — which is * what it did, live, on 403/404/405/429. Lang::has() is false for a null * line, so it is the check that actually distinguishes the two cases. */ $line = fn (string $part) => \Illuminate\Support\Facades\Lang::has("errors.{$code}.{$part}") ? __("errors.{$code}.{$part}") : null; $title = $line('title') ?? (string) $code; $body = $line('body'); $hint = $line('hint'); @endphp {{ $title }} — CluPilot Cloud {{-- Self-contained, like the maintenance page and for the same reason: this is shown when something has already gone wrong, which includes "mid-deploy" and "the asset manifest is missing". Pulling styles in through @vite would throw a second exception on top of the first and render nothing at all. The fonts are the site's own, served as static files — if they are missing the page degrades to a system serif and still says what it needs to say. --}} @verbatim @endverbatim
{{ __('errors.heading') }}{{ $code }}
CluPilot

{{ $title }}

@if ($body)

{{ $body }}

@endif @if ($hint)

{{ $hint }}

@endif
{{-- Back first: on an error page the thing someone actually wants is the page they came from, not the front door. --}} {{ __('errors.back') }} {{ __('errors.home') }}

CluPilot Cloud