@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 ? listTotal() : hasScheduleCalendar ? visibleSchedules().length + ' / ' + schedules().length : schedules().length }} 节
@if (!isHistory) { } @if (isHistory) {
共 {{ loading() ? '—' : listTotal() }} 条记录 · 当前 {{ visibleSchedules().length }} 条 @if (historyFilterActive()) { }
{{historyMonth()==='all'?'全部月份':historyMonth().replace('-', '年')+'月'}}{{historyStudentName()}}
陪练费用合计 {{loading() || error() || !earningsSummary() ? '—' : '¥' + (earningsSummary()!.amount | number:'1.2-2')}}
{{loading()?'正在核对费用…':'共 '+listTotal()+' 条陪练记录'}}@if(!loading() && !error() && earningsSummary()?.pendingCount){{{earningsSummary()!.pendingCount}} 条待核对}

{{feeSummaryError() || '合计包含所选范围的全部分页;取消记录和待核对费用不计入。'}}

} @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?',当前保留上次加载结果':''}}
}