mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
ALPHA 3.0.3
This commit is contained in:
@@ -30,7 +30,16 @@ foreach (Auth::user()->unreadNotifications as $notification) {
|
||||
<div class="dropdown-menu" aria-labelledby="notification">
|
||||
<?php
|
||||
foreach (Auth::user()->unreadNotifications as $notification) {
|
||||
echo '<a class="dropdown-item media bg-flat-color-1" href="#"><i class="fa fa-info"></i><p>'.$notification->data['msg'].'</p></a>';
|
||||
$fa_icon = "fa-info";
|
||||
$found = strpos($notification->data['msg'],"Ajout");
|
||||
if ($found !== false) {
|
||||
$fa_icon = "fa-plus";
|
||||
}
|
||||
$found = strpos($notification->data['msg'],"Suppression");
|
||||
if ($found !== false) {
|
||||
$fa_icon = "fa-plus";
|
||||
}
|
||||
echo '<form method="post" action="/admin/notication/mark/'.$notification->id.'">'.csrf_field().'<button name="url" type="submit" value="'.$notification->data['url'].'" class="dropdown-item media cs-notification" href="#"><i class="fa '.$fa_icon.'"></i><p>'.$notification->data['msg'].'</p></button></form>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user