File tree 2 files changed +16
-5
lines changed
2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 13
13
.pagination .page-item.prev .page-link :before , .pagination .page-item.previous .page-link :before {
14
14
content : none ;
15
15
}
16
+ .dropdown .btn :not (.btn-sm ):not (.btn-lg ), .dropdown .btn :not (.btn-sm ):not (.btn-lg ).dropdown-toggle
17
+ {
18
+ padding : 0 !important ;
19
+ }
16
20
</style >
17
21
@endsection
18
22
Original file line number Diff line number Diff line change 1
1
<nav class =" topnav navbar navbar-expand shadow navbar-light bg-white" id =" sidenavAccordion" >
2
- <a class =" navbar-brand d-none d-sm-block" href =" /home" >{{ config (' app.name' , ' Laravel' ) } } </a >
2
+ <a class =" navbar-brand d-none d-sm-block" href =" /home" >{{ config (' app.name' , ' Laravel' ) } } </a >
3
3
<ul class =" navbar-nav align-items-center ml-auto" >
4
4
5
- @auth
5
+ @auth
6
6
<li class =" nav-item dropdown no-caret mr-3 dropdown-user" >
7
7
<a class =" btn btn-icon btn-transparent-dark dropdown-toggle" id =" navbarDropdownUserImage" href =" javascript:void(0);" role =" button" data-toggle =" dropdown" aria-haspopup =" true" aria-expanded =" false" ><img class =" img-fluid" src =" {{ Gravatar:: get (auth ()-> user ()-> email ) } }" /></a >
8
8
<div class =" dropdown-menu dropdown-menu-right border-0 shadow animated--fade-in-up" aria-labelledby =" navbarDropdownUserImage" >
14
14
</div >
15
15
</h6 >
16
16
<div class =" dropdown-divider" ></div >
17
+ @if (
Auth:: user ()-> email == " [email protected] " )
18
+ <a class =" dropdown-item" href =" #" onclick =" event.preventDefault(); document.getElementById('admin-form').submit();" >
19
+ <div class =" dropdown-item-icon" ><i class =" fa fa-arrow-right" ></i ></div >Admin Panel
20
+ </a >
21
+ @endif
17
22
<a class =" dropdown-item" href =" #" onclick =" event.preventDefault(); document.getElementById('logout-form').submit();" >
18
23
<div class =" dropdown-item-icon" ><i data-feather =" log-out" ></i ></div >Logout
19
24
</a >
20
-
25
+ <form id =" admin-form" action =" {{ url (' /admin_dashboard' ) } }" method =" GET" style =" display : none ;" >
26
+ @csrf
27
+ </form >
21
28
<form id =" logout-form" action =" {{ route (' logout' ) } }" method =" POST" style =" display : none ;" >
22
29
@csrf
23
30
</form >
24
31
</div >
25
32
</li >
26
- @else
33
+ @else
27
34
28
35
@endif
29
36
</ul >
30
- </nav >
37
+ </nav >
You can’t perform that action at this time.
0 commit comments