@model PlanTempus.Application.Features.Employees.Components.EmployeeWorkScheduleViewModel
@{
string GetTimeDisplay(ShiftData? shift)
{
if (shift == null) return "—";
return shift.Status switch
{
"work" => $"{shift.Start} - {shift.End}",
"vacation" => Model.LabelVacation,
"sick" => Model.LabelSick,
_ => "—"
};
}
string GetTimeClass(ShiftData? shift)
{
if (shift == null) return "off";
return shift.Status switch
{
"work" => "",
"vacation" => "vacation",
"sick" => "sick",
_ => "off"
};
}
bool IsClosed(string date) => Model.ClosedDays.Contains(date);
}