@props([ 'user' => null, 'size' => 40, 'subtitle' => null, 'nameClass' => 'fw-semibold', 'stacked' => false, ]) @php $photoUrl = $user?->profile_photo_path ? asset('storage/' . $user->profile_photo_path) : null; $userInitial = $user?->name ? strtoupper(mb_substr($user->name, 0, 1)) : 'U'; $avatarSize = (int) $size; @endphp