public function deleteAll() { $noti = \App\NotificationHistory::where('status', '=', '1')->get(); foreach ($noti as $n) { $n->status = 0; $n->save(); } return redirect('notifications')->withFlashMessage("Suppression des notifications éffectué avec succès"); }
NProgress.done(); }); $(document).on('page:change', function() { NProgress.start(); NProgress.done(); }); $(document).on('page:restore', function() { NProgress.start(); NProgress.done(); }); </script> <?php // Récupération des notifications $noti = \App\NotificationHistory::with('users')->where('status', '=', 1)->orderBy('id', 'desc')->limit(12)->get(); ?> <a href="{{ ucfirst(route('bo')) }}" class="logo"> <!-- mini logo for sidebar mini 50x50 pixels --> <span class="logo-mini"><b>{{substr(\Config::get('constante.nom_code_miniature'), 0, 2)}}</b></span> <!-- logo for regular state and mobile devices --> <span class="logo-lg"><b>{{\Config::get('constante.nom_code')}}</b></span> </a> <!-- Header Navbar: style can be found in header.less --> <nav class="navbar navbar-static-top" role="navigation"> <!-- Sidebar toggle button--> <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span>