This commit is contained in:
Julian Prieber 2023-05-17 12:35:49 +02:00
parent 83c3a9b4ee
commit 589c09ba66
1 changed files with 2 additions and 0 deletions

View File

@ -180,6 +180,8 @@
<div class="profile-img position-relative me-3 mb-3 mb-lg-0 profile-logo profile-logo1"> <div class="profile-img position-relative me-3 mb-3 mb-lg-0 profile-logo profile-logo1">
@if(file_exists(base_path(findAvatar(Auth::user()->id)))) @if(file_exists(base_path(findAvatar(Auth::user()->id))))
<img src="{{ url(findAvatar(Auth::user()->id)) }}" class="theme-color-default-img img-fluid rounded-pill avatar-100 bg-white" width="100" height="100" draggable="false" style="object-fit:cover;"> <img src="{{ url(findAvatar(Auth::user()->id)) }}" class="theme-color-default-img img-fluid rounded-pill avatar-100 bg-white" width="100" height="100" draggable="false" style="object-fit:cover;">
@elseif(file_exists(base_path("assets/linkstack/images/").findFile('avatar')))
<img src="{{ url("assets/linkstack/images/")."/".findFile('avatar') }}" class="theme-color-default-img img-fluid rounded-pill avatar-100 bg-white" width="100" height="100" draggable="false">
@else @else
<img src="{{ asset('assets/linkstack/images/logo.svg') }}" class="theme-color-default-img img-fluid rounded-pill avatar-100 bg-white" width="100" height="100" draggable="false"> <img src="{{ asset('assets/linkstack/images/logo.svg') }}" class="theme-color-default-img img-fluid rounded-pill avatar-100 bg-white" width="100" height="100" draggable="false">
@endif @endif