<%- include('partials/header') %>

<%= t('syllabus.title') %>

<%= t('syllabus.weekLabel') %> <%= weekRange %> (<%= weekId %>) • <% if (lastSynced) { %> <%= t('syllabus.syncedLabel') %> <%= new Date(lastSynced).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }) %> <% } else { %> <%= t('syllabus.notSynced') %> <% } %>

<% if (currentStatus && currentStatus.statusText) { %>
● <%= currentStatus.statusText %>
<% } %>
<%= t('syllabus.stationLabel') %>
<% if (typeof advisoryTeacher !== 'undefined' && advisoryTeacher) { %>
<%= t('syllabus.advisorLabel') %>
<%= advisoryTeacher %> <%= t('syllabus.advisoryTag') %>
<% } %>
<%= t('syllabus.viewLabel') %>
<% [1, 2, 3, 4, 5].forEach(function(d) { %> <% const isToday = (new Date().getDay() === d); %> <% }); %>
<% [1, 2, 3, 4, 5].forEach(function(d) { %>
<% const lessons = filteredSchedule[d] || []; %> <% if (lessons.length === 0) { %>

<%= t('syllabus.noLessonsDay', { day: DAY_NAMES[d] }) %>

<% } else { %>
<% lessons.forEach(function(l) { %>
<%= l.period %> <%= l.time %>
<%= l.subject %>
<% if (l.teacherPhoto) { %> <%= l.teacher %> <% } %> <%= l.teacher %>
<% if (l.station) { %> <%= l.station %> <% } else { %> <%= t('syllabus.classBadge') %> <% } %>
<% }); %>
<% } %>
<% }); %>
<%- include('partials/footer') %>