Skip to content

Commit e9216e8

Browse files
committed
2 parents 4553287 + 81999b7 commit e9216e8

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

resources/views/layouts/master.blade.php

+8
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ class="focus:ring-2 focus:ring-offset-2 focus:ring-indigo-600 mt-4 sm:mt-0
6262
</a>
6363
</div>
6464
</div>
65+
66+
@if(session()->has('message'))
67+
<div class="flex items-center bg-blue-500 text-white text-sm font-bold px-4 py-3" role="alert">
68+
<svg class="fill-current w-4 h-4 mr-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M12.432 0c1.34 0 2.01.912 2.01 1.957 0 1.305-1.164 2.512-2.679 2.512-1.269 0-2.009-.75-1.974-1.99C9.789 1.436 10.67 0 12.432 0zM8.309 20c-1.058 0-1.833-.652-1.093-3.524l1.214-5.092c.211-.814.246-1.141 0-1.141-.317 0-1.689.562-2.502 1.117l-.528-.88c2.572-2.186 5.531-3.467 6.801-3.467 1.057 0 1.233 1.273.705 3.23l-1.391 5.352c-.246.945-.141 1.271.106 1.271.317 0 1.357-.392 2.379-1.207l.6.814C12.098 19.02 9.365 20 8.309 20z"/></svg>
69+
<p>{{ session()->get('message') }}</p>
70+
</div>
71+
@endif
72+
6573
@yield('content')
6674
</div>
6775
</div>

src/Controllers/ActionMonitoringController.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public function destroy(int $id)
2020
->where('id', $id)
2121
->delete();
2222

23-
return to_route('user-monitoring.actions-monitoring');
23+
return to_route('user-monitoring.actions-monitoring')->with([
24+
'message' => 'The action has been deleted.',
25+
]);
2426
}
2527
}

src/Controllers/AuthenticationMonitoringController.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public function destroy(int $id)
2020
->where('id', $id)
2121
->delete();
2222

23-
return to_route('user-monitoring.authentications-monitoring');
23+
return to_route('user-monitoring.authentications-monitoring')->with([
24+
'message' => 'The action has been deleted.',
25+
]);
2426
}
2527
}

src/Controllers/VisitMonitoringController.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public function destroy(int $id)
2020
->where('id', $id)
2121
->delete();
2222

23-
return to_route('user-monitoring.visits-monitoring');
23+
return to_route('user-monitoring.visits-monitoring')->with([
24+
'message' => 'The action has been deleted.',
25+
]);
2426
}
2527
}

0 commit comments

Comments
 (0)