diff --git a/resources/views/layouts/master.blade.php b/resources/views/layouts/master.blade.php index 94d98c0..da33e24 100644 --- a/resources/views/layouts/master.blade.php +++ b/resources/views/layouts/master.blade.php @@ -62,6 +62,14 @@ class="focus:ring-2 focus:ring-offset-2 focus:ring-indigo-600 mt-4 sm:mt-0 + + @if(session()->has('message')) + + @endif + @yield('content') diff --git a/src/Controllers/ActionMonitoringController.php b/src/Controllers/ActionMonitoringController.php index cb04d37..ecca8fc 100644 --- a/src/Controllers/ActionMonitoringController.php +++ b/src/Controllers/ActionMonitoringController.php @@ -20,6 +20,8 @@ public function destroy(int $id) ->where('id', $id) ->delete(); - return to_route('user-monitoring.actions-monitoring'); + return to_route('user-monitoring.actions-monitoring')->with([ + 'message' => 'The action has been deleted.', + ]); } } diff --git a/src/Controllers/AuthenticationMonitoringController.php b/src/Controllers/AuthenticationMonitoringController.php index d8085a9..4e417ca 100644 --- a/src/Controllers/AuthenticationMonitoringController.php +++ b/src/Controllers/AuthenticationMonitoringController.php @@ -20,6 +20,8 @@ public function destroy(int $id) ->where('id', $id) ->delete(); - return to_route('user-monitoring.authentications-monitoring'); + return to_route('user-monitoring.authentications-monitoring')->with([ + 'message' => 'The action has been deleted.', + ]); } } diff --git a/src/Controllers/VisitMonitoringController.php b/src/Controllers/VisitMonitoringController.php index 29bcab6..7334cf3 100644 --- a/src/Controllers/VisitMonitoringController.php +++ b/src/Controllers/VisitMonitoringController.php @@ -20,6 +20,8 @@ public function destroy(int $id) ->where('id', $id) ->delete(); - return to_route('user-monitoring.visits-monitoring'); + return to_route('user-monitoring.visits-monitoring')->with([ + 'message' => 'The action has been deleted.', + ]); } }