Update admin nav, add avatar fallback

This commit is contained in:
Daniel Supernault 2022-12-26 23:20:24 -07:00
parent 257c094911
commit 5eaa6d24a6
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -35,7 +35,7 @@
<a class="nav-link pr-0" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div class="media align-items-center">
<span class="avatar avatar-sm rounded-circle">
<img alt="avatar" src="{{request()->user()->profile->avatarUrl()}}">
<img alt="avatar" src="{{request()->user()->profile->avatarUrl()}}" onerror="this.onerror=null;this.src='/storage/avatars/default.png?v=0';">
</span>
<div class="media-body ml-2 d-none d-lg-block">
<span class="mb-0 text-sm font-weight-bold">{{request()->user()->username}}</span>