Updated Google Avatar, Admin Features, All Pages with small changes, Filters in Publications Page
This commit is contained in:
@@ -44,7 +44,20 @@
|
||||
<div class="dropdown ms-2">
|
||||
<a class="d-flex align-items-center text-white text-decoration-none dropdown-toggle"
|
||||
href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<img src="{{ asset('assets/frontend/images/user.png') }}"
|
||||
@php
|
||||
$user = Auth::user();
|
||||
$imagePath = $user->profile_image;
|
||||
$imageUrl = asset('assets/frontend/images/user.png'); // Default
|
||||
|
||||
if ($imagePath) {
|
||||
if (Str::startsWith($imagePath, ['http://', 'https://'])) {
|
||||
$imageUrl = $imagePath;
|
||||
} else {
|
||||
$imageUrl = Storage::disk('public')->url($imagePath);
|
||||
}
|
||||
}
|
||||
@endphp
|
||||
<img src="{{ $imageUrl }}"
|
||||
alt="profile"
|
||||
class="navbar-profile-picture me-2">
|
||||
<span>{{ Auth::user()->name }}</span>
|
||||
|
||||
Reference in New Issue
Block a user