2026-06-08 08:01:12 +03:30
|
|
|
@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 = "توافقی";
|
|
|
|
|
string? telHref = null;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(t.Phone))
|
|
|
|
|
{
|
|
|
|
|
var digits = new string(t.Phone.Where(char.IsDigit).ToArray());
|
|
|
|
|
if (digits.Length >= 7) telHref = "tel:" + digits;
|
|
|
|
|
}
|
2026-06-08 08:36:12 +03:30
|
|
|
// Friendly source name (used to point users to the original ad when no number was extracted).
|
|
|
|
|
string? sourceName = null;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(t.SourceUrl))
|
|
|
|
|
{
|
|
|
|
|
var host = System.Uri.TryCreate(t.SourceUrl, UriKind.Absolute, out var su) ? su.Host : t.SourceUrl!;
|
|
|
|
|
sourceName = host.Contains("divar") ? "دیوار" : host.Contains("medjobs") ? "مدجابز" : host;
|
|
|
|
|
}
|
2026-06-08 08:01:12 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<div class="page-head">
|
|
|
|
|
<div class="container">
|
|
|
|
|
<h1>@heading</h1>
|
|
|
|
|
<p class="muted">آماده همکاری @(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 : ""))</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="container section">
|
|
|
|
|
<div class="detail-grid">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="card card-pad">
|
|
|
|
|
<div class="row" style="gap:8px; flex-wrap:wrap;">
|
|
|
|
|
@if (t.Role is not null) { <span class="badge badge-type">@t.Role.Name</span> }
|
|
|
|
|
<span class="badge badge-talent">آماده به کار</span>
|
|
|
|
|
@if (t.YearsExperience is int yrs && yrs > 0) { <span class="badge badge-day">@JalaliDate.ToPersianDigits(yrs.ToString()) سال سابقه</span> }
|
|
|
|
|
@if (t.IsLicensed) { <span class="badge badge-verified">پروانهدار</span> }
|
|
|
|
|
@if (t.Gender != JobsMedical.Web.Models.Gender.Any) { <span class="badge badge-gender">@JalaliDate.GenderLabel(t.Gender)</span> }
|
|
|
|
|
@if (t.Availability is JobsMedical.Web.Models.EmploymentType emp)
|
|
|
|
|
{
|
|
|
|
|
<span class="badge badge-job">@(emp switch {
|
|
|
|
|
JobsMedical.Web.Models.EmploymentType.FullTime => "تماموقت",
|
|
|
|
|
JobsMedical.Web.Models.EmploymentType.PartTime => "پارهوقت",
|
|
|
|
|
JobsMedical.Web.Models.EmploymentType.Contract => "قراردادی",
|
|
|
|
|
_ => "طرح" })</span>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
@if (!string.IsNullOrWhiteSpace(t.AreaNote))
|
|
|
|
|
{
|
|
|
|
|
<p style="margin:12px 0 0;"><strong>محدوده کاری:</strong> @t.AreaNote</p>
|
|
|
|
|
}
|
|
|
|
|
<p style="margin:12px 0 0;"><strong>دستمزد مدنظر:</strong> @comp</p>
|
|
|
|
|
@if (!string.IsNullOrWhiteSpace(t.Description))
|
|
|
|
|
{
|
|
|
|
|
<hr style="border:none; border-top:1px solid var(--line); margin:16px 0;" />
|
|
|
|
|
<p style="white-space:pre-wrap; margin:0;">@t.Description</p>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<aside>
|
|
|
|
|
<div class="card card-pad">
|
|
|
|
|
<h3 style="margin-top:0;">تماس</h3>
|
|
|
|
|
@if (telHref is not null)
|
|
|
|
|
{
|
|
|
|
|
<a href="@telHref" class="btn btn-accent btn-block btn-lg" dir="ltr">📞 @t.Phone</a>
|
|
|
|
|
<p class="muted" style="font-size:12px; margin:10px 0 0;">با این فرد مستقیم تماس بگیرید.</p>
|
|
|
|
|
}
|
2026-06-08 08:36:12 +03:30
|
|
|
else if (!string.IsNullOrWhiteSpace(t.SourceUrl))
|
2026-06-08 08:01:12 +03:30
|
|
|
{
|
2026-06-08 08:36:12 +03:30
|
|
|
@* Number wasn't extractable (e.g. behind a login-gated reveal) — point to the source. *@
|
|
|
|
|
<p class="muted" style="margin-top:0;">شماره مستقیم استخراج نشد.</p>
|
|
|
|
|
<a href="@t.SourceUrl" target="_blank" rel="nofollow noopener" class="btn btn-accent btn-block btn-lg">مشاهده شماره در @sourceName ↗</a>
|
|
|
|
|
<p class="muted" style="font-size:12px; margin:10px 0 0;">این آگهی از @sourceName جمعآوری شده؛ برای دریافت شماره به آگهی اصلی مراجعه کن.</p>
|
2026-06-08 08:01:12 +03:30
|
|
|
}
|
2026-06-08 08:36:12 +03:30
|
|
|
else
|
2026-06-08 08:01:12 +03:30
|
|
|
{
|
2026-06-08 08:36:12 +03:30
|
|
|
<p class="muted">شماره تماس ثبت نشده است.</p>
|
2026-06-08 08:01:12 +03:30
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</aside>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|