-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnote.code
38 lines (35 loc) · 1.2 KB
/
note.code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$role = Auth::user()->roles[0]->name;
switch ($role) {
case 'admin':
return route('dashboard.admin');
break;
case 'super_admin':
return route('dashboard.super_admin');
break;
case 'santri_baru':
return route('dashboard.santri_baru');
break;
case 'santri_aktif':
return route('dashboard.santri_aktif');
break;
case 'alumni':
return route('dashboard.alumni');
break;
case 'admin_madin':
return route('dashboard.admin_madin');
break;
case 'hankamtib':
return route('dashboard.hankamtib');
break;
case 'bendahara':
return route('dashboard.bendahara');
break;
case 'asatidz':
return route('dashboard.asatidz');
break;
default:
return route('dashboard.tamu');
break;
}
- jangan lupa logic nis saat input
- madin is_verified letakkan di tb:madin saja, hapus yang si students