@php
$defaultAvatarPath = asset('assets/default_user.jpg');
$profilePictureValue = is_string($profilePicturePath ?? null) ? trim($profilePicturePath) : '';
$profileAvatarPath = $profilePictureValue === ''
? $defaultAvatarPath
: (\Illuminate\Support\Str::startsWith($profilePictureValue, ['http://', 'https://'])
? $profilePictureValue
: asset(ltrim($profilePictureValue, '/')));
@endphp