|
@@ -42,7 +42,7 @@
|
42
|
42
|
data: formData,
|
43
|
43
|
success: function(response) {
|
44
|
44
|
$('#closeSpeechForm').submit();
|
45
|
|
- var alertContainer = $('.alert-success');
|
|
45
|
+ var alertContainer = $('.alert-info');
|
46
|
46
|
alertContainer.find('span').text(response.message); // Set message text
|
47
|
47
|
alertContainer.fadeIn().removeClass('hidden'); // Show the alert
|
48
|
48
|
setTimeout(function() {
|
|
@@ -54,25 +54,6 @@
|
54
|
54
|
}
|
55
|
55
|
});
|
56
|
56
|
});
|
57
|
|
- })
|
58
|
|
-
|
59
|
|
- function showSuccessMessage(message) {
|
60
|
|
- // Create a dynamic success message element
|
61
|
|
- var successAlert = $('<div class="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded relative" role="alert">' +
|
62
|
|
- '<span class="block sm:inline">' + message + '</span>' +
|
63
|
|
- '</div>');
|
64
|
|
-
|
65
|
|
- // Append the message to a suitable container in your HTML (e.g., modal, form, or body)
|
66
|
|
- $('#alert-success').append(successAlert);
|
67
|
|
-
|
68
|
|
- // Automatically remove the message after 3 seconds
|
69
|
|
- setTimeout(function() {
|
70
|
|
- successAlert.fadeOut('slow', function() {
|
71
|
|
- $(this).remove();
|
72
|
|
- });
|
73
|
|
- }, 3000); // 3 seconds
|
74
|
|
-
|
75
|
|
- // session()->forget('success');
|
76
|
|
- }
|
|
57
|
+ });
|
77
|
58
|
</script>
|
78
|
59
|
@endpush
|