@{
    var hasErrors = ViewData.ModelState.ErrorCount > 0;
}
@if (hasErrors)
{
    <div class="alert alert-danger alert-important" role="alert">
        <div class="d-flex align-items-start gap-2">
            <span class="avatar avatar-xs bg-red-lt text-red">!</span>
            <div class="flex-fill">
                <div class="fw-semibold mb-1">입력값을 확인하세요.</div>
                <div asp-validation-summary="All" class="text-sm"></div>
            </div>
        </div>
    </div>
}
