From f422cba1ac69fbd3f1836e301f2eb1608963afbb Mon Sep 17 00:00:00 2001 From: Subash Date: Tue, 19 Aug 2025 18:04:13 +0545 Subject: [PATCH] changes --- resources/views/client/raffles/layouts/app.blade.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/resources/views/client/raffles/layouts/app.blade.php b/resources/views/client/raffles/layouts/app.blade.php index 173aedd..a2ac94e 100644 --- a/resources/views/client/raffles/layouts/app.blade.php +++ b/resources/views/client/raffles/layouts/app.blade.php @@ -202,11 +202,12 @@ const data = await res.json(); if (res.ok) { form.reset(); - toastr.success(data.message || 'Contact Submitted successful!'); + window.location.href = + "{{ route('thankyou') }}"; // ✅ redirect instead of toastr } else if (data.errors && data.errors.email) { data.errors.email.forEach(msg => toastr.error(msg)); } else { - toastr.error('Submittion failed. Please try again.'); + toastr.error('Submission failed. Please try again.'); } } catch (err) { console.error(err); @@ -241,11 +242,12 @@ const data = await res.json(); if (res.ok) { form.reset(); - toastr.success(data.message || 'Contact Submitted successful!'); + window.location.href = + "{{ route('thankyou') }}"; // ✅ redirect instead of toastr } else if (data.errors && data.errors.email) { data.errors.email.forEach(msg => toastr.error(msg)); } else { - toastr.error('Submittion failed. Please try again.'); + toastr.error('Submission failed. Please try again.'); } } catch (err) { console.error(err);