Skip to content

Commit dcbf1ce

Browse files
committed
Add admin menu in website header
1 parent cd6b6d6 commit dcbf1ce

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A Laravel CMS Starter project with AdminLTE theme and core features.
66

77
[Preview project here](http://bpocallaghan.co.za/admin)
88
9-
- Password: Github
9+
- Password: github
1010

1111
## Features / What it includes
1212
- Admin LTE admin theme

app/Http/Controllers/Auth/LoginController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ private function sendLoginResponse(Request $request)
117117

118118
$this->clearLoginAttempts($request);
119119

120+
log_action('Login', user()->fullname . ' logged in.');
121+
120122
return redirect()->intended('/admin');
121123
}
122124

resources/views/admin/dashboard.blade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
@section('content')
44

5+
<div class="well well-sm bg-gray-light">
6+
<p><strong>Note</strong>: uBlock Origin browser extension block the '<strong>/api/analtyics</strong>' ajax to get the google analytics</p>
7+
</div>
8+
59
@include('admin.partials.boxes.dashboard_header')
610

711
<div class="row">

resources/views/website/contact.blade.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,10 @@
2525
<abbr title="Hours">H</abbr>: Monday - Friday: 8:00 AM to 5:00 PM</p>
2626
<ul class="list-unstyled list-inline list-social-icons">
2727
<li>
28-
<a href="#"><i class="fa fa-facebook-square fa-2x"></i></a>
28+
<a href="https://www.facebook.com/bpocallaghan"><i class="fa fa-2x fa-facebook-square"></i></a>
2929
</li>
3030
<li>
31-
<a href="#"><i class="fa fa-linkedin-square fa-2x"></i></a>
32-
</li>
33-
<li>
34-
<a href="#"><i class="fa fa-twitter-square fa-2x"></i></a>
35-
</li>
36-
<li>
37-
<a href="#"><i class="fa fa-google-plus-square fa-2x"></i></a>
31+
<a href="https://twitter.com/bpocallaghan"><i class="fa fa-2x fa-twitter-square"></i></a>
3832
</li>
3933
</ul>
4034
</div>

resources/views/website/partials/header.blade.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@
1919
<a href="/">Home</a>
2020
</li>
2121
@endif
22+
<li>
23+
<a href="/admin">
24+
@if(Auth::check())
25+
{!! user()->fullname !!}
26+
@else
27+
<i class="fa fa-user-secret"></i>
28+
Admin
29+
@endif
30+
</a>
31+
</li>
2232
</ul>
2333
</div>
2434
</div>

0 commit comments

Comments
 (0)