User login updates

This commit is contained in:
Deon George 2019-04-11 22:30:03 +10:00
parent 6d84613158
commit c406c35ff7
No known key found for this signature in database
GPG Key ID: 7670E8DC27415254
3 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,7 @@
<li class="breadcrumb-item"><a href="{{url($url)}}">{{ $item }}</a></li>
@endforeach
@endisset
<li class="breadcrumb-item active">@yield('contentheader_title', 'Content Title')</li>
<li class="breadcrumb-item active">@yield('page_title','Page Title')</li>
</ol>
</div><!-- /.col -->
</div><!-- /.row -->

View File

@ -46,6 +46,8 @@
</a>
</div>
</li>
@else
<a href="{{ url('login') }}" class="text-muted pr-2"><i class="fa fa-lock"></i></a>
@endif
<!-- Control Side Bar -->

View File

@ -11,10 +11,10 @@
<!-- Sidebar user panel (optional) -->
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
<div class="image">
<img src="{{ Gravatar::get($user->exists ? $user->email : 'nobody@example.com') }}" class="img-circle elevation-2" alt="User">
<img src="{{ Gravatar::get(($user->exists AND $user->email) ? $user->email : 'nobody@example.com') }}" class="img-circle elevation-2" alt="User">
</div>
<div class="info">
<a class="d-block">{{ $user->name ?: 'Nobody' }}</a>
<a href="{{ url('login') }}" class="d-block">{{ $user->name ?: 'Nobody' }}</a>
</div>
</div>