From c91d25eb3bfa4a5de091b20723db9a14730d37c7 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Sat, 6 Jun 2026 20:35:18 +0000 Subject: [PATCH] Fix legacy hosting order page 500 from stale route names. Point show.blade.php at hosting.legacy.* routes and add the missing input-error component. Co-authored-by: Cursor --- resources/views/components/input-error.blade.php | 9 +++++++++ resources/views/hosting/show.blade.php | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 resources/views/components/input-error.blade.php diff --git a/resources/views/components/input-error.blade.php b/resources/views/components/input-error.blade.php new file mode 100644 index 0000000..9e6da21 --- /dev/null +++ b/resources/views/components/input-error.blade.php @@ -0,0 +1,9 @@ +@props(['messages']) + +@if ($messages) + +@endif diff --git a/resources/views/hosting/show.blade.php b/resources/views/hosting/show.blade.php index 9b5444e..7eea68f 100644 --- a/resources/views/hosting/show.blade.php +++ b/resources/views/hosting/show.blade.php @@ -49,7 +49,7 @@ this.passwordSuccess = ''; try { - const res = await fetch('{{ route('hosting.reset-panel-password', $order) }}', { + const res = await fetch('{{ route('hosting.legacy.reset-panel-password', $order) }}', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -300,7 +300,7 @@ this.error = ''; this.success = ''; try { - const res = await fetch('{{ route('hosting.renew', $order) }}', { + const res = await fetch('{{ route('hosting.legacy.renew', $order) }}', { method: 'POST', headers: { 'Content-Type': 'application/json',