<div class="float right">
<div class="links text-center">
<a href="/books"><i class="zmdi zmdi-book"></i>Books</a>
- @if($currentUser->can('settings-update'))
+ @if(isset($currentUser) && $currentUser->can('settings-update'))
<a href="/settings"><i class="zmdi zmdi-settings"></i>Settings</a>
@endif
- @if(!$signedIn)
+ @if(!isset($signedIn) || !$signedIn)
<a href="/login"><i class="zmdi zmdi-sign-in"></i>Sign In</a>
@endif
</div>
- @if($signedIn)
+ @if(isset($signedIn) && $signedIn)
<div class="dropdown-container" dropdown>
<span class="user-name" dropdown-toggle>
<img class="avatar" src="{{$currentUser->getAvatar(30)}}" alt="{{ $currentUser->name }}">
<div class="container">
- <h1>Page Not Found</h1>
- <p>The page you were looking for could not be found.</p>
+ <h1 class="text-muted">Page Not Found</h1>
+ <p>Sorry, The page you were looking for could not be found.</p>
+ <a href="/" class="button">Return To Home</a>
</div>
@stop
\ No newline at end of file