{{-- One technical page (404, 500, maintenance, offline, link expired...): config/error_pages.php holds each state's words. No database, and only its own assets (css/technical-pages.css, js/technical-pages.js, images/likely-sports-logo.svg): it renders while the app or database is down. $static: written to public/errors (no request behind it). --}} @php $page = config('error_pages.states.' . $state); $links = config('error_pages.links'); $static ??= false; // Site paths: asset()/url() on a request; root-relative in the static copies (written from the CLI, served on any host). $url = fn (string $path = '') => $static ? '/' . ltrim($path, '/') : url($path); $asset = fn (string $path) => ($static ? '/' . $path : asset($path)) . '?v=' . assetVersion($path); $link = fn (?string $href) => $href && ! preg_match('#^[a-z]+:#i', $href) ? $url($href) : $href; $retryUrl = $static ? null : (request()->isMethod('GET') ? request()->fullUrl() : url()->previous()); $back = $static ? $url() : url()->previous(); $back = str_starts_with($back, url('/')) ? $back : $url(); $signin = $back . (str_contains($back, '?') ? '&' : '?') . 'login=1'; $retryAfter = isset($exception) && method_exists($exception, 'getHeaders') ? ($exception->getHeaders()['Retry-After'] ?? null) : null; $retryAfter = is_numeric($retryAfter) ? (int) $retryAfter : ($retryAfter ? max(1, strtotime($retryAfter) - time()) : 60); $return = $state === '503' ? config('error_pages.maintenance_return') : null; $arrow = ''; $retryIcon = ''; $icons = [ 'maintenance' => '', 'timeout' => '', 'offline' => '', 'link' => '', 'globe' => '', ]; @endphp {{ strip_tags(str_replace('<br>', '', $page['title'])) }} | Likely Sports
Likely Sports

{{ $page['kicker'] }}

{!! $page['title'] !!}

{{ $page['description'] }}

@foreach ($page['actions'] as $i => $action) @php [$action, $label] = array_pad(explode(':', $action, 2), 2, null); $class = 'ls-action' . ($i === 0 ? ' ls-primary' : ''); $icon = $i === 0 || $action === 'retry' ? ($action === 'retry' ? $retryIcon : $arrow) : ''; if ($action === 'status' && ! $links['status']) { $action = 'retry'; } @endphp @switch($action) @case('home')Back to home {!! $icon !!}@break @case('status'){{ $label }} {!! $icon !!}@break @case('support'){{ $label }} {!! $icon !!}@break @case('account')Switch account {!! $icon !!}@break @case('signin')Sign in again {!! $icon !!}@break @case('newlink')Request a new link {!! $icon !!}@break @case('connection')@break @case('limit')@break @default @endswitch @endforeach

@if ($return){{ $return }}
Check the latest update before trying again.@else{!! $page['detail'] !!}@endif