@page "/" @using ShiftScheduler.Client.Components

Shift Scheduler - @SelectedDate.Title

@if (!string.IsNullOrEmpty(_errorMessage)) { } @if (!string.IsNullOrEmpty(_successMessage)) { } @if (_showCalendarSelector) { } @if (_isLoadingInitial) {
⏳

Loading shifts and transport data...

} else {
@foreach (var week in SelectedDate.GetWeeksInMonth()) { @foreach (var day in week.Value) {
@day.ToString("dd.MM.yyyy") (@day.ToString("dddd"))
@foreach (var shift in Shifts) {
@shift.Name
}
@if (SelectedSchedule.ContainsKey(day)) { if (GetShiftTimes(day).Length > 0) {
@GetShiftTimes(day)
@GetTransportSummary(day)
} else {
@SelectedSchedule[day]
} }
} }
@foreach (var day in SelectedDate.DaysInMonth()) {
@day.ToString("dd.MM.yyyy") (@day.ToString("dddd"))
@foreach (var shift in Shifts) {
@shift.Name
}
@if (SelectedSchedule.ContainsKey(day)) { if (GetShiftTimes(day).Length > 0) {
@GetShiftTimes(day)
@GetTransportSummary(day)
} else {
@SelectedSchedule[day]
} }
}
}