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