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

@@ -14,17 +14,22 @@
<div class="card shadow-sm p-4">
<div class="row align-items-center mb-3">
<div class="col-md-2 text-center">
@if($profile->profile_photo_path)
<img src="{{ Storage::url($profile->profile_photo_path) }}"
alt="Profile Photo"
class="rounded-circle shadow-sm"
width="120" height="120">
@else
<img src="{{ asset('assets/frontend/images/default-avatar.png') }}"
alt="Default Photo"
class="rounded-circle shadow-sm"
width="120" height="120">
@endif
@php
$imagePath = $profile->profile_photo_path ?? auth()->user()->profile_image;
$imageUrl = asset('assets/frontend/images/default-avatar.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 Photo"
class="rounded-circle shadow-sm"
width="120" height="120">
</div>
<div class="col-md-10">
<h5 class="fw-bold mb-1">{{ $profile->salutation }} {{ $profile->name }}</h5>