fix(errors): update error pages to provide navigation options
- Modified error pages (400, 401, 402, 403, 404, 419, 429, 500, 503) to replace "Go back home" button with "Go back" and added a "Dashboard" button for improved navigation. - Updated links to use `url()->previous()` for returning to the previous page and `route('dashboard')` for accessing the dashboard directly.
This commit is contained in:
@@ -11,9 +11,12 @@
|
|||||||
malformed syntax.
|
malformed syntax.
|
||||||
</p>
|
</p>
|
||||||
@endif
|
@endif
|
||||||
<div class="flex items-center mt-10 gap-x-6">
|
<div class="flex items-center mt-10 gap-x-2">
|
||||||
<a href="/">
|
<a href="{{ url()->previous() }}">
|
||||||
<x-forms.button>Go back home</x-forms.button>
|
<x-forms.button>Go back</x-forms.button>
|
||||||
|
</a>
|
||||||
|
<a href="{{ route('dashboard') }}">
|
||||||
|
<x-forms.button>Dashboard</x-forms.button>
|
||||||
</a>
|
</a>
|
||||||
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
||||||
support
|
support
|
||||||
|
@@ -5,9 +5,12 @@
|
|||||||
<h1 class="mt-4 font-bold tracking-tight dark:text-white">You shall not pass!</h1>
|
<h1 class="mt-4 font-bold tracking-tight dark:text-white">You shall not pass!</h1>
|
||||||
<p class="text-base leading-7 dark:text-neutral-400 text-black">You don't have permission to access this page.
|
<p class="text-base leading-7 dark:text-neutral-400 text-black">You don't have permission to access this page.
|
||||||
</p>
|
</p>
|
||||||
<div class="flex items-center mt-10 gap-x-6">
|
<div class="flex items-center mt-10 gap-x-2">
|
||||||
<a href="/">
|
<a href="{{ url()->previous() }}">
|
||||||
<x-forms.button>Go back home</x-forms.button>
|
<x-forms.button>Go back</x-forms.button>
|
||||||
|
</a>
|
||||||
|
<a href="{{ route('dashboard') }}">
|
||||||
|
<x-forms.button>Dashboard</x-forms.button>
|
||||||
</a>
|
</a>
|
||||||
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
||||||
support
|
support
|
||||||
|
@@ -4,9 +4,12 @@
|
|||||||
<div>
|
<div>
|
||||||
<p class="font-mono font-semibold text-7xl dark:text-warning">402</p>
|
<p class="font-mono font-semibold text-7xl dark:text-warning">402</p>
|
||||||
<h1 class="mt-4 font-bold tracking-tight dark:text-white">Payment required.</h1>
|
<h1 class="mt-4 font-bold tracking-tight dark:text-white">Payment required.</h1>
|
||||||
<div class="flex items-center mt-10 gap-x-6">
|
<div class="flex items-center mt-10 gap-x-2">
|
||||||
<a href="/">
|
<a href="{{ url()->previous() }}">
|
||||||
<x-forms.button>Go back home</x-forms.button>
|
<x-forms.button>Go back</x-forms.button>
|
||||||
|
</a>
|
||||||
|
<a href="{{ route('dashboard') }}">
|
||||||
|
<x-forms.button>Dashboard</x-forms.button>
|
||||||
</a>
|
</a>
|
||||||
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
||||||
support
|
support
|
||||||
|
@@ -5,9 +5,12 @@
|
|||||||
<h1 class="mt-4 font-bold tracking-tight dark:text-white">You shall not pass!</h1>
|
<h1 class="mt-4 font-bold tracking-tight dark:text-white">You shall not pass!</h1>
|
||||||
<p class="text-base leading-7 dark:text-neutral-400 text-black">You don't have permission to access this page.
|
<p class="text-base leading-7 dark:text-neutral-400 text-black">You don't have permission to access this page.
|
||||||
</p>
|
</p>
|
||||||
<div class="flex items-center mt-10 gap-x-6">
|
<div class="flex items-center mt-10 gap-x-2">
|
||||||
<a href="/">
|
<a href="{{ url()->previous() }}">
|
||||||
<x-forms.button>Go back home</x-forms.button>
|
<x-forms.button>Go back</x-forms.button>
|
||||||
|
</a>
|
||||||
|
<a href="{{ route('dashboard') }}">
|
||||||
|
<x-forms.button>Dashboard</x-forms.button>
|
||||||
</a>
|
</a>
|
||||||
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
||||||
support
|
support
|
||||||
|
@@ -6,9 +6,12 @@
|
|||||||
<p class="text-base leading-7 dark:text-neutral-400 text-black">Sorry, we couldn’t find the page you’re looking
|
<p class="text-base leading-7 dark:text-neutral-400 text-black">Sorry, we couldn’t find the page you’re looking
|
||||||
for.
|
for.
|
||||||
</p>
|
</p>
|
||||||
<div class="flex items-center mt-10 gap-x-6">
|
<div class="flex items-center mt-10 gap-x-2">
|
||||||
<a href="/">
|
<a href="{{ url()->previous() }}">
|
||||||
<x-forms.button>Go back home</x-forms.button>
|
<x-forms.button>Go back</x-forms.button>
|
||||||
|
</a>
|
||||||
|
<a href="{{ route('dashboard') }}">
|
||||||
|
<x-forms.button>Dashboard</x-forms.button>
|
||||||
</a>
|
</a>
|
||||||
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
||||||
support
|
support
|
||||||
|
@@ -6,9 +6,12 @@
|
|||||||
<p class="text-base leading-7 dark:text-neutral-300 text-black">Sorry, we couldn’t find the page you’re looking
|
<p class="text-base leading-7 dark:text-neutral-300 text-black">Sorry, we couldn’t find the page you’re looking
|
||||||
for.
|
for.
|
||||||
</p>
|
</p>
|
||||||
<div class="flex items-center mt-10 gap-x-6">
|
<div class="flex items-center mt-10 gap-x-2">
|
||||||
<a href="/">
|
<a href="{{ url()->previous() }}">
|
||||||
<x-forms.button>Go back home</x-forms.button>
|
<x-forms.button>Go back</x-forms.button>
|
||||||
|
</a>
|
||||||
|
<a href="{{ route('dashboard') }}">
|
||||||
|
<x-forms.button>Dashboard</x-forms.button>
|
||||||
</a>
|
</a>
|
||||||
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
||||||
support
|
support
|
||||||
|
@@ -7,9 +7,12 @@
|
|||||||
few
|
few
|
||||||
seconds before trying again.
|
seconds before trying again.
|
||||||
</p>
|
</p>
|
||||||
<div class="flex items-center mt-10 gap-x-6">
|
<div class="flex items-center mt-10 gap-x-2">
|
||||||
<a href="/">
|
<a href="{{ url()->previous() }}">
|
||||||
<x-forms.button>Go back home</x-forms.button>
|
<x-forms.button>Go back</x-forms.button>
|
||||||
|
</a>
|
||||||
|
<a href="{{ route('dashboard') }}">
|
||||||
|
<x-forms.button>Dashboard</x-forms.button>
|
||||||
</a>
|
</a>
|
||||||
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
||||||
support
|
support
|
||||||
|
@@ -10,9 +10,12 @@
|
|||||||
{!! Purify::clean($exception->getMessage()) !!}
|
{!! Purify::clean($exception->getMessage()) !!}
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
<div class="flex items-center mt-10 gap-6">
|
<div class="flex items-center mt-10 gap-x-2">
|
||||||
<a href="/">
|
<a href="{{ url()->previous() }}">
|
||||||
<x-forms.button>Go back home</x-forms.button>
|
<x-forms.button>Go back</x-forms.button>
|
||||||
|
</a>
|
||||||
|
<a href="{{ route('dashboard') }}">
|
||||||
|
<x-forms.button>Dashboard</x-forms.button>
|
||||||
</a>
|
</a>
|
||||||
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
||||||
support
|
support
|
||||||
|
@@ -7,9 +7,17 @@
|
|||||||
your
|
your
|
||||||
patience.
|
patience.
|
||||||
</p>
|
</p>
|
||||||
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
<div class="flex items-center mt-10 gap-x-2">
|
||||||
support
|
<a href="{{ url()->previous() }}">
|
||||||
<x-external-link />
|
<x-forms.button>Go back</x-forms.button>
|
||||||
</a>
|
</a>
|
||||||
|
<a href="{{ route('dashboard') }}">
|
||||||
|
<x-forms.button>Dashboard</x-forms.button>
|
||||||
|
</a>
|
||||||
|
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
||||||
|
support
|
||||||
|
<x-external-link />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user