ALPHA 3.0.3

This commit is contained in:
TheGamecraft
2018-09-11 14:26:31 -04:00
parent 14cea968d2
commit d1c3d60791
11 changed files with 98 additions and 10 deletions

View File

@@ -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>