Updated Google Avatar, Admin Features, All Pages with small changes, Filters in Publications Page
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user