diff --git a/resources/views/errors/admin-shell.blade.php b/resources/views/errors/admin-shell.blade.php new file mode 100644 index 0000000..fcdf9f8 --- /dev/null +++ b/resources/views/errors/admin-shell.blade.php @@ -0,0 +1,34 @@ +@php + $titles = [ + 401 => ['Authentication required', 'Sign in to continue to the admin area.'], + 403 => ['Access denied', 'You do not have permission to view this page.'], + 404 => ['Page not found', 'The requested admin page does not exist or may have moved.'], + 419 => ['Session expired', 'Refresh the page and try again.'], + 429 => ['Too many requests', 'Please wait a moment before trying again.'], + ]; + [$errorTitle, $errorMessage] = $titles[$status] ?? $titles[404]; +@endphp + +
+
+
+
+ +
+
+

{{ $errorTitle }}

+

Admin panel / HTTP {{ $status }}

+
+
+
+
{{ $status }}
+

{{ $errorTitle }}

+

{{ $errorMessage }}

+
+ + +
+
+
+
+
diff --git a/resources/views/errors/page.blade.php b/resources/views/errors/page.blade.php index 12de456..b060e77 100644 --- a/resources/views/errors/page.blade.php +++ b/resources/views/errors/page.blade.php @@ -1,3 +1,5 @@ +{{-- Severe failures use a dependency-free fallback to prevent secondary rendering errors. --}} +@if(in_array($status, [500, 503], true)) @php $pages = [ 401 => ['title' => 'Authentication required', 'text' => 'Sign in to continue to the admin area.', 'icon' => 'lock'], @@ -68,3 +70,7 @@ + +@else + @include('lazy::errors.admin-shell') +@endif