<% if (typeof success !=='undefined' && success) { %>
<%= success %>
<% } %>
<% if (typeof error !=='undefined' && error) { %>
<%= error %>
<% } %>
Sesi Mabar Hari Ini
<% ['pagi', 'siang' , 'sore' , 'malam' ].forEach(timeSlot=> {
const slotNames = { pagi: 'Pagi (08:00 WIB)', siang: 'Siang (12:00 WIB)', sore: 'Sore (15:30 WIB)', malam:
'Malam (19:30 WIB)' };
const session = sessions.today[timeSlot] || { status: 'closed', participants: {} };
const status = schedule.today[timeSlot] ? schedule.today[timeSlot].status : 'offline';
const participantsList = Object.values(session.participants || {});
%>
Sesi <%= slotNames[timeSlot] %>
<%= status.toUpperCase() %>
| Player |
Role |
<% if (participantsList.length> 0) { %>
<% participantsList.forEach(p=> { %>
<% const isAbsent = String(p.attendanceStatus || '').toLowerCase() === 'absent'; %>
|
<%= p.username %>
<% if (p.isTemp) { %>
TEMP
<% } %>
<% if (isAbsent) { %>
TIDAK HADIR
<% } %>
|
<%= p.roleMl || p.role || '-' %>
|
<% }) %>
<% } else { %>
|
Lobby kosong. |
<% } %>
<% if (status==='preparing' ) { %>
<% } else if (status==='streaming' ) { %>
Lihat Live
<% } else { %>
<% } %>
<% }) %>
Booking Sesi Besok
<% ['pagi', 'siang' , 'sore' , 'malam' ].forEach(timeSlot=> {
const slotNames = { pagi: 'Pagi (08:00 WIB)', siang: 'Siang (12:00 WIB)', sore: 'Sore (15:30 WIB)', malam:
'Malam (19:30 WIB)' };
const session = sessions.tomorrow[timeSlot] || { status: 'closed', participants: {} };
const status = schedule.tomorrow[timeSlot] ? schedule.tomorrow[timeSlot].status : 'offline';
const participantsList = Object.values(session.participants || {});
%>
Sesi <%= slotNames[timeSlot] %>
<%= status.toUpperCase() %>
| Player |
Role |
<% if (participantsList.length> 0) { %>
<% participantsList.forEach(p=> { %>
<% const isAbsent = String(p.attendanceStatus || '').toLowerCase() === 'absent'; %>
|
<%= p.username %>
<% if (p.isTemp) { %>
TEMP
<% } %>
<% if (isAbsent) { %>
TIDAK HADIR
<% } %>
|
<%= p.roleMl || p.role || '-' %>
|
<% }) %>
<% } else { %>
|
Lobby kosong. |
<% } %>
<% if (status==='preparing' ) { %>
<% } else if (status==='streaming' ) { %>
Lihat Live
<% } else { %>
<% } %>
<% }) %>