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

Syllabus

Week: <%= weekRange %> (<%= weekId %>) • <% if (lastSynced) { %> Synced: <%= new Date(lastSynced).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }) %> <% } else { %> Not synced <% } %>

<% if (currentStatus && currentStatus.statusText) { %>
● <%= currentStatus.statusText %>
<% } %>
Station:
<% if (typeof advisoryTeacher !== 'undefined' && advisoryTeacher) { %>
Advisor:
<%= advisoryTeacher %> Danışmanlık
<% } %>
View:
<% [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) { %>

No lessons found for <%= DAY_NAMES[d] %>. Click "Sync Syllabus" to fetch from portal.

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