@page "{id:int}" @model JobsMedical.Web.Pages.Shifts.DetailsModel @{ var s = Model.Shift!; var f = s.Facility!; ViewData["Title"] = $"شیفت {s.SpecialtyRequired} - {f.Name}"; ViewData["Description"] = $"شیفت {s.SpecialtyRequired} در {f.Name}، {f.City?.Name}، تاریخ {JalaliDate.ToLongDate(s.Date)} از ساعت {JalaliDate.Time(s.StartTime)}."; // Past/filled shifts shouldn't stay in the index as dead pages. if (s.Status != JobsMedical.Web.Models.ShiftStatus.Open || s.Date < DateOnly.FromDateTime(DateTime.UtcNow)) ViewData["NoIndex"] = true; var (badgeClass, typeLabel) = s.ShiftType switch { ShiftType.Day => ("badge-day", "شیفت صبح"), ShiftType.Evening => ("badge-evening", "شیفت عصر"), ShiftType.Night => ("badge-night", "شیفت شب"), _ => ("badge-oncall", "آنکال"), }; }
@typeLabel @if (f.IsVerified) { ✓ مرکز تأیید شده }

@s.SpecialtyRequired — @f.Name

📍 @f.City?.Name @(string.IsNullOrEmpty(f.Address) ? "" : "، " + f.Address)

@if (Model.ShowContact) {
✓ تمایل شما ثبت شد. برای هماهنگی شیفت با مرکز درمانی تماس بگیرید: @(f.Phone ?? "شماره ثبت نشده") @if (!string.IsNullOrEmpty(f.BaleId)) { — بله: @f.BaleId }
}

جزئیات شیفت

تاریخ@JalaliDate.WeekDayName(s.Date)، @JalaliDate.ToLongDate(s.Date)
ساعت@JalaliDate.Time(s.StartTime) تا @JalaliDate.Time(s.EndTime)
مدت@JalaliDate.ToPersianDigits(s.DurationHours.ToString("0.#")) ساعت
نقش مورد نیاز@(s.Role?.Name ?? s.SpecialtyRequired)
@if (s.GenderRequirement != Gender.Any) {
جنسیت@JalaliDate.GenderLabel(s.GenderRequirement)
}
پرداخت@JalaliDate.PayLabel(s.PayType, s.PayAmount, s.SharePercent)
بازه ساعت کاری در شبانه‌روز
@if (!string.IsNullOrEmpty(s.Description)) {

توضیحات

@s.Description

} @if (Model.MoreAtFacility.Count > 0) {

شیفت‌های دیگر این مرکز

@foreach (var more in Model.MoreAtFacility) { }
}
@* Sticky bottom action bar — mobile only. Always-reachable primary action (native-app feel). *@
@if (Model.ShowContact) { @if (!string.IsNullOrEmpty(f.Phone)) { 📞 تماس با مرکز } else { اطلاعات تماس در بالای صفحه } } else {
}
@if (!string.IsNullOrEmpty(Model.MapKey) && Model.Shift?.Facility?.Lat is not null) { } @section Head { @{ var bu = $"{ViewContext.HttpContext.Request.Scheme}://{ViewContext.HttpContext.Request.Host}"; } @Html.Raw("") }