public function index($request) { $data['team'] = User::getTeam(); $data['notif_page'] = true; $data['notifs'] = StaffNotification::getInternStaffNotifications(100); $data['is_notif_enabled'] = StaffNotification::isEnabled(Session::get()); $data['push_mail'] = Session::get()->details->push_bullet_email; return new ViewResponse('admin/notifications/index', $data); }
public function index($request) { $data['storage_server'] = ['local_server', 'stor1']; $data['tickets'] = Ticket::getSize(Session::get()); $data['all_tickets'] = Ticket::getSize(); $data['news'] = News::getLastNews(); $data['notifs'] = StaffNotification::getInternStaffNotifications(); $data['team'] = User::getTeam(); $data['is_notif_enabled'] = StaffNotification::isEnabled(Session::get()); return new ViewResponse('admin/dashboard/index', $data); }