@csrf @php $hasAvatar = isset($model) && $model->avatar; $getAvatar = $hasAvatar ? $model->avatarImage : ''; @endphp