File tree 2 files changed +65
-0
lines changed
2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace App \Http \Middleware ;
4
+
5
+ use Closure ;
6
+
7
+ class CheckLock
8
+ {
9
+ /**
10
+ * Handle an incoming request.
11
+ *
12
+ * @param \Illuminate\Http\Request $request
13
+ * @param \Closure $next
14
+ * @return mixed
15
+ */
16
+ public function handle ($ request , Closure $ next )
17
+ {
18
+ if (intval (auth ()->user ()->islocked ) == 1 ) {
19
+ return redirect ()->route ('locked_user ' );
20
+ }
21
+ return $ next ($ request );
22
+ }
23
+ }
Original file line number Diff line number Diff line change
1
+ @extends (' layouts.app' )
2
+ @section (' styles' )
3
+ @endsection
4
+
5
+ @section (' content' )
6
+
7
+ @include (' layouts.topnav' )
8
+
9
+ <div id =" layoutSidenav" >
10
+
11
+ @include (' layouts.sidenav' )
12
+ <div id =" layoutSidenav_content" >
13
+ <main >
14
+
15
+ <div class =" page-header pb-10 page-header-dark bg-gradient-primary-to-secondary" >
16
+ <div class =" container-fluid" >
17
+ <div class =" page-header-content" >
18
+ <h1 class =" page-header-title" >
19
+ <div class =" page-header-icon" ><i class =" fas fa-tachometer-alt" ></i ></div >
20
+ <span >Dashboard</span >
21
+ </h1 >
22
+ <div class =" page-header-subtitle" ></div >
23
+ </div >
24
+ </div >
25
+ </div >
26
+ <div class =" container-fluid mt-n10" >
27
+ <div class =" row" >
28
+ <div class =" col-md-12 text-center" >
29
+ <h2 class =" text-white" >Your account has been locked by administrator.</h2 >
30
+ </div >
31
+ </div >
32
+ </div >
33
+
34
+ </main >
35
+ @include (' layouts.footer' )
36
+ </div >
37
+ </div >
38
+
39
+ @endsection
40
+ @section (' scripts' )
41
+ @parent
42
+ @endsection
You can’t perform that action at this time.
0 commit comments