@if (loading() || syncNoticeVisible()) {
{{ liveStatusText() }}
} @if (!isCoach) {

我的学习内容

{{ (loading()||error())&&!courses().length ? '—' : courses().length }} 项
@if (courses().length) { @if (courses().length > 3) { } } @else {

{{ error() ? '学习内容暂时无法加载,请重试' : loading() ? '正在读取学习内容…' : '暂未分配学习内容,请联系老师' }}

}
}

{{ isHistory ? '销课记录' : isCoach ? '陪练排课' : '伴学列表' }}

{{ (loading()||error())&&!schedules().length ? '—' : isHistory || hasScheduleCalendar ? visibleSchedules().length + ' / ' + schedules().length : schedules().length }} 节
@if (isHistory) {
当前显示 {{ visibleSchedules().length }} 节,共 {{ listTotal() }} 节 @if (historyFilterActive()) { }
} @if (hasScheduleCalendar) {
@if (isCoach && studentOptions().length) { }
{{ calendarLabel() }}
@for (day of calendarDays(); track day.date) { }

{{ scheduleRangeLabel() }} · {{(loading()||error())&&!schedules().length?'—':visibleSchedules().length}} 节课

} @else if (!isCoach && schedules().length) { } @if (visibleSchedules().length) { @for (group of groups(); track group.date) {

{{ group.date }}

@for (item of group.items; track $index) {
{{ scheduleTitle(item) }}@if (scheduleSubtitle(item)) { {{ scheduleSubtitle(item) }} }
@if (isHistory && isCoach && !item['cancelled']) {
{{ item['payStatus'] === 'earned' ? '带课工资 ¥' + ($any(item['teacherPay']) | number:'1.2-2') : '工资待核对' }}{{item['feedbackStatus']==='submitted'?'反馈已提交':'反馈待补'}}
} {{ statusText(item) }} @if (isCoach) { }
}
} } @else {

{{ error() ? '课表暂时无法加载,请重试' : loading() ? '正在读取排课数据…' : (isHistory && schedules().length && historyFilterActive() ? '没有符合筛选条件的销课记录' : (hasScheduleCalendar ? scheduleEmptyText() : (schedules().length ? '该分类暂无伴学记录' : (isCoach ? '暂无销课记录' : '暂无伴学记录')))) }}

}
@if (error()) {
{{ error() }}{{schedules().length?',当前保留上次加载结果':''}}
}