@if($profile && $profile->avatar_url)

@else
@php $initial = strtoupper(substr($user->username ?? 'A', 0, 1)); @endphp
{{ $initial }}
@endif
{{-- Pencil / Edit Button --}}
{{-- Avatar Action Buttons --}}
@if($profile && $profile->avatar_url)
@endif
{{-- Selected file preview --}}
{{ $user->username ?? '-' }}