Merge branch 'branch-fiqh' into 'main'

enhance dikit

See merge request fiqhpratama1/xpendify!4
This commit is contained in:
FIQH PRATAMA
2024-12-26 05:19:49 +00:00
2 changed files with 10 additions and 0 deletions
@@ -137,6 +137,8 @@ class FormUpCountryController extends Controller
]); ]);
session()->flash('success', 'Form has been created.'); session()->flash('success', 'Form has been created.');
session()->flash('redirect_url', route('forms.up-country'));
return redirect()->back(); return redirect()->back();
} }
@@ -19,6 +19,10 @@
title: "Success!", title: "Success!",
text: "{{ Session::get('success') }}", text: "{{ Session::get('success') }}",
icon: "success" icon: "success"
}).then(() => {
if ("{{ Session::get('redirect_url') }}") {
window.location.href = "{{ Session::get('redirect_url') }}";
}
}); });
</script> </script>
@endif @endif
@@ -30,6 +34,10 @@
text: "{{ Session::get('error') }}", text: "{{ Session::get('error') }}",
icon: "error", icon: "error",
timer: 5000 timer: 5000
}).then(() => {
if ("{{ Session::get('redirect_url') }}") {
window.location.href = "{{ Session::get('redirect_url') }}";
}
}); });
</script> </script>
@endif @endif