Updated Google Avatar, Admin Features, All Pages with small changes, Filters in Publications Page

This commit is contained in:
tanmaychinchore
2025-12-11 18:01:16 +05:30
parent f81f73d614
commit 54725c2a05
12 changed files with 236 additions and 63 deletions

View File

@@ -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>