2026-06-03 01:43:55 +03:30
|
|
|
@page "{id:int}"
|
|
|
|
|
@model JobsMedical.Web.Pages.Jobs.DetailsModel
|
|
|
|
|
@{
|
|
|
|
|
var j = Model.Job!;
|
|
|
|
|
var f = j.Facility!;
|
|
|
|
|
ViewData["Title"] = j.Title;
|
|
|
|
|
ViewData["Description"] = $"{j.Title} در {f.Name}، {f.City?.Name}. موقعیت استخدامی برای {j.Role?.Name}.";
|
|
|
|
|
string empLabel = j.EmploymentType switch
|
|
|
|
|
{
|
|
|
|
|
EmploymentType.FullTime => "تماموقت",
|
|
|
|
|
EmploymentType.PartTime => "پارهوقت",
|
|
|
|
|
EmploymentType.Contract => "قراردادی",
|
|
|
|
|
_ => "طرح",
|
|
|
|
|
};
|
|
|
|
|
string salary;
|
|
|
|
|
if (j.SalaryMin is null && j.SalaryMax is null) salary = "توافقی";
|
|
|
|
|
else if (j.SalaryMin == j.SalaryMax) salary = JalaliDate.Toman(j.SalaryMin) + " ماهانه";
|
|
|
|
|
else salary = $"از {JalaliDate.ToPersianDigits((j.SalaryMin ?? 0).ToString("#,0"))} تا {JalaliDate.Toman(j.SalaryMax)} ماهانه";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<div class="page-head">
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="row" style="display:flex; gap:10px; align-items:center;">
|
|
|
|
|
<span class="badge badge-job">@empLabel</span>
|
|
|
|
|
@if (j.Role is not null) { <span class="badge badge-type">@j.Role.Name</span> }
|
|
|
|
|
@if (f.IsVerified) { <span class="badge badge-verified">✓ مرکز تأیید شده</span> }
|
|
|
|
|
</div>
|
|
|
|
|
<h1 style="margin-top:8px;">@j.Title</h1>
|
|
|
|
|
<p class="muted">🏥 @f.Name — 📍 @f.City?.Name@(f.District is not null ? "، " + f.District.Name : "")</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-06-04 19:12:34 +03:30
|
|
|
<div class="container section has-action-bar">
|
2026-06-03 01:43:55 +03:30
|
|
|
<div class="detail-grid">
|
|
|
|
|
<div>
|
|
|
|
|
@if (Model.ShowContact)
|
|
|
|
|
{
|
|
|
|
|
<div class="alert alert-success">
|
|
|
|
|
✓ تمایل شما ثبت شد. برای پیگیری استخدام با مرکز تماس بگیرید:
|
|
|
|
|
<strong>@(f.Phone ?? "شماره ثبت نشده")</strong>
|
|
|
|
|
@if (!string.IsNullOrEmpty(f.BaleId)) { <text> — بله: @f.BaleId</text> }
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
@if (Model.Saved)
|
|
|
|
|
{
|
|
|
|
|
<div class="alert alert-success">✓ این موقعیت ذخیره شد.</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<div class="card card-pad">
|
|
|
|
|
<h3 style="margin-top:0;">مشخصات موقعیت</h3>
|
|
|
|
|
<div class="info-row"><span class="k">نوع همکاری</span><span class="v">@empLabel</span></div>
|
|
|
|
|
<div class="info-row"><span class="k">نقش</span><span class="v">@j.Role?.Name</span></div>
|
2026-06-04 00:19:32 +03:30
|
|
|
@if (j.GenderRequirement != Gender.Any)
|
|
|
|
|
{
|
|
|
|
|
<div class="info-row"><span class="k">جنسیت</span><span class="v">@JalaliDate.GenderLabel(j.GenderRequirement)</span></div>
|
|
|
|
|
}
|
2026-06-03 01:43:55 +03:30
|
|
|
<div class="info-row"><span class="k">حقوق ماهانه</span><span class="v" style="color:var(--primary-dark)">@salary</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@if (!string.IsNullOrEmpty(j.Description))
|
|
|
|
|
{
|
|
|
|
|
<div class="card card-pad" style="margin-top:16px;">
|
|
|
|
|
<h3 style="margin-top:0;">شرح موقعیت</h3>
|
|
|
|
|
<p class="muted" style="margin:0;">@j.Description</p>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
@if (!string.IsNullOrEmpty(j.Requirements))
|
|
|
|
|
{
|
|
|
|
|
<div class="card card-pad" style="margin-top:16px;">
|
|
|
|
|
<h3 style="margin-top:0;">شرایط احراز</h3>
|
|
|
|
|
<p class="muted" style="margin:0;">@j.Requirements</p>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<aside>
|
|
|
|
|
<div class="card card-pad">
|
|
|
|
|
<div class="pay" style="font-size:19px; margin-bottom:6px; color:var(--primary-dark); font-weight:800;">@salary</div>
|
|
|
|
|
<p class="muted" style="font-size:13px; margin-top:0;">@empLabel</p>
|
2026-06-04 19:12:34 +03:30
|
|
|
<div class="aside-apply">
|
|
|
|
|
<form method="post">
|
|
|
|
|
<button type="submit" asp-page-handler="Interest" asp-route-id="@j.Id"
|
|
|
|
|
class="btn btn-accent btn-block btn-lg">اعلام تمایل و مشاهده راه ارتباطی</button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2026-06-03 01:43:55 +03:30
|
|
|
<div style="display:flex; gap:8px; margin-top:8px;">
|
|
|
|
|
<form method="post" style="flex:1;">
|
|
|
|
|
<button type="submit" asp-page-handler="Save" asp-route-id="@j.Id" class="btn btn-outline btn-block">♡ ذخیره</button>
|
|
|
|
|
</form>
|
|
|
|
|
<form method="post" style="flex:1;">
|
|
|
|
|
<button type="submit" asp-page-handler="Dismiss" asp-route-id="@j.Id" class="btn btn-outline btn-block">✕ علاقهمند نیستم</button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2026-06-04 13:19:20 +03:30
|
|
|
@if (Model.Reported)
|
|
|
|
|
{
|
|
|
|
|
<p class="muted" style="font-size:12px; margin:8px 0 0;">✓ گزارش شما ثبت شد. متشکریم.</p>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<details style="margin-top:10px;">
|
|
|
|
|
<summary class="muted" style="font-size:12px; cursor:pointer;">گزارش تخلف یا اطلاعات نادرست</summary>
|
|
|
|
|
<form method="post" action="/report" style="margin-top:8px;">
|
|
|
|
|
<input type="hidden" name="targetType" value="Job" />
|
|
|
|
|
<input type="hidden" name="targetId" value="@j.Id" />
|
|
|
|
|
<input type="hidden" name="label" value="@j.Title" />
|
|
|
|
|
<input type="hidden" name="returnUrl" value="/Jobs/Details/@j.Id" />
|
|
|
|
|
<textarea name="reason" rows="2" placeholder="دلیل گزارش..." required></textarea>
|
|
|
|
|
<button type="submit" class="btn btn-outline btn-block" style="margin-top:6px;">ارسال گزارش</button>
|
|
|
|
|
</form>
|
|
|
|
|
</details>
|
2026-06-04 16:26:15 +03:30
|
|
|
@if (j.Facility is not null)
|
|
|
|
|
{
|
|
|
|
|
<details style="margin-top:6px;">
|
|
|
|
|
<summary class="muted" style="font-size:12px; cursor:pointer;">شکایت از این مرکز (@j.Facility.Name)</summary>
|
|
|
|
|
<form method="post" action="/report" style="margin-top:8px;">
|
|
|
|
|
<input type="hidden" name="targetType" value="Facility" />
|
|
|
|
|
<input type="hidden" name="targetId" value="@j.Facility.Id" />
|
|
|
|
|
<input type="hidden" name="label" value="@j.Facility.Name" />
|
|
|
|
|
<input type="hidden" name="returnUrl" value="/Jobs/Details/@j.Id" />
|
|
|
|
|
<textarea name="reason" rows="2" placeholder="شکایت یا گزارش درباره این مرکز..." required></textarea>
|
|
|
|
|
<button type="submit" class="btn btn-outline btn-block" style="margin-top:6px;">ثبت شکایت</button>
|
|
|
|
|
</form>
|
|
|
|
|
</details>
|
|
|
|
|
}
|
2026-06-04 13:19:20 +03:30
|
|
|
}
|
2026-06-03 01:43:55 +03:30
|
|
|
</div>
|
2026-06-04 18:57:49 +03:30
|
|
|
|
|
|
|
|
@if (j.Facility?.Lat is not null && j.Facility?.Lng is not null)
|
|
|
|
|
{
|
|
|
|
|
var latS = j.Facility.Lat.Value.ToString(System.Globalization.CultureInfo.InvariantCulture);
|
|
|
|
|
var lngS = j.Facility.Lng.Value.ToString(System.Globalization.CultureInfo.InvariantCulture);
|
|
|
|
|
<div class="card card-pad" style="margin-top:16px;">
|
|
|
|
|
<h3 style="margin-top:0;">موقعیت مکانی</h3>
|
|
|
|
|
@if (!string.IsNullOrEmpty(Model.MapKey))
|
|
|
|
|
{
|
|
|
|
|
<div id="facmap" data-lat="@latS" data-lng="@lngS" style="height:200px; border-radius:10px; overflow:hidden; border:1px solid var(--line);"></div>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<div style="background:var(--primary-soft); border-radius:10px; height:140px; display:grid; place-items:center; color:var(--primary-dark); text-align:center; padding:10px;">
|
|
|
|
|
🗺️<br /><small class="muted" dir="ltr">@latS، @lngS</small>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
<a class="btn btn-outline btn-block" style="margin-top:8px;" target="_blank" rel="noopener"
|
|
|
|
|
href="https://neshan.org/maps/@(latS),@(lngS),16z">مسیریابی در نشان</a>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
2026-06-03 01:43:55 +03:30
|
|
|
</aside>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-06-04 18:57:49 +03:30
|
|
|
|
2026-06-04 19:12:34 +03:30
|
|
|
@* Sticky bottom action bar — mobile only. *@
|
|
|
|
|
<div class="mobile-action-bar">
|
|
|
|
|
@if (Model.ShowContact)
|
|
|
|
|
{
|
|
|
|
|
@if (!string.IsNullOrEmpty(f.Phone))
|
|
|
|
|
{
|
|
|
|
|
<a class="btn btn-accent btn-lg cta-main" href="tel:@f.Phone">📞 تماس با مرکز</a>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<span class="cta-main center muted" style="align-self:center;">اطلاعات تماس در بالای صفحه</span>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<form method="post" class="cta-main">
|
|
|
|
|
<button type="submit" asp-page-handler="Interest" asp-route-id="@j.Id" class="btn btn-accent btn-block btn-lg">اعلام تمایل و مشاهده تماس</button>
|
|
|
|
|
</form>
|
|
|
|
|
<form method="post">
|
|
|
|
|
<button type="submit" asp-page-handler="Save" asp-route-id="@j.Id" class="btn btn-outline btn-lg" aria-label="ذخیره" title="ذخیره">♡</button>
|
|
|
|
|
</form>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-06-04 18:57:49 +03:30
|
|
|
@if (!string.IsNullOrEmpty(Model.MapKey) && Model.Job?.Facility?.Lat is not null)
|
|
|
|
|
{
|
|
|
|
|
<partial name="_NeshanMap" model="Model.MapKey" />
|
|
|
|
|
}
|
2026-06-07 08:16:30 +03:30
|
|
|
|
|
|
|
|
@section Head {
|
|
|
|
|
@{ var bu = $"{ViewContext.HttpContext.Request.Scheme}://{ViewContext.HttpContext.Request.Host}"; }
|
|
|
|
|
@Html.Raw("<script type=\"application/ld+json\">" + JobsMedical.Web.Services.SeoJsonLd.JobPosting(j, bu) + "</script>")
|
|
|
|
|
}
|