@model IReadOnlyList @* Renders one row per contact channel (phone/Bale/Telegram/email/…) with a clickable action. Shared by the shift, job, and applicant detail pages. *@ @foreach (var c in Model.OrderBy(c => c.SortOrder)) { var href = JobsMedical.Web.Services.ContactInfo.Href(c.Type, c.Value); var label = JobsMedical.Web.Services.ContactInfo.Label(c.Type); var icon = JobsMedical.Web.Services.ContactInfo.Icon(c.Type); var cls = c.Type is JobsMedical.Web.Models.ContactType.Mobile or JobsMedical.Web.Models.ContactType.Phone ? "btn-accent" : "btn-outline";
@icon @label@c.Value @if (href is not null) { @(c.Type is JobsMedical.Web.Models.ContactType.Mobile or JobsMedical.Web.Models.ContactType.Phone ? "تماس" : "باز کردن") }
}