{{ $title }}
@if ($body){{ $body }}
@endif @if ($hint){{ $hint }}
@endifCluPilot Cloud
@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
{{ $body }}
@endif @if ($hint){{ $hint }}
@endifCluPilot Cloud