@page "{id:int}" @model JobsMedical.Web.Pages.Talent.DetailsModel @{ var t = Model.Item!; var heading = string.IsNullOrWhiteSpace(t.PersonName) ? (t.Role?.Name ?? "آماده به کار") : t.PersonName!; ViewData["Title"] = $"{heading} — آماده به کار"; // Personal contact info: keep this page out of search indexes. ViewData["NoIndex"] = true; string comp; if (t.PayType == JobsMedical.Web.Models.PayType.Percentage && t.SharePercent is int sp) comp = $"{JalaliDate.ToPersianDigits(sp.ToString())}٪ سهم درآمد"; else if (t.PayAmount is long pa && pa > 0) comp = JalaliDate.Toman(pa) + " مدنظر"; else comp = "توافقی"; }

@heading

آماده همکاری @(t.Role is not null ? "— " + t.Role.Name : "") · 📍 @t.City?.Name@(t.District?.Name is not null ? "، " + t.District.Name : (t.AreaNote is not null ? "، " + t.AreaNote : ""))

@if (t.Role is not null) { @t.Role.Name } آماده به کار @if (t.YearsExperience is int yrs && yrs > 0) { @JalaliDate.ToPersianDigits(yrs.ToString()) سال سابقه } @if (t.IsLicensed) { پروانه‌دار } @if (t.Gender != JobsMedical.Web.Models.Gender.Any) { @JalaliDate.GenderLabel(t.Gender) } @if (t.Availability is JobsMedical.Web.Models.EmploymentType emp) { @(emp switch { JobsMedical.Web.Models.EmploymentType.FullTime => "تمام‌وقت", JobsMedical.Web.Models.EmploymentType.PartTime => "پاره‌وقت", JobsMedical.Web.Models.EmploymentType.Contract => "قراردادی", _ => "طرح" }) }
@if (!string.IsNullOrWhiteSpace(t.AreaNote)) {

محدوده کاری: @t.AreaNote

}

دستمزد مدنظر: @comp

@if (!string.IsNullOrWhiteSpace(t.Description)) {

@t.Description

}
@if (!string.IsNullOrEmpty(Model.MapKey) && t.Lat is not null) { }