<table class="table datatables" style="text-align:left">
    <thead>
        <tr>
            <th>課堂日期</th>
            <th>開始時間</th>
            <th>結束時間</th>
            <th>假期 skip</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($items as $item) : ?>
            <tr>
                <td><?php echo date('Y-m-d', $item['startdate']) . sprintf(' (%s)', \app\libraries\DateHelper::getDefaultTcWeekdays($item['startdate'])); ?></td>
                <td><?php echo $item['holiday_skip'] ? '一' : $item['starttime']; ?></td>
                <td><?php echo $item['holiday_skip'] ? '一' : $item['endtime']; ?></td>
                <td><?php echo $item['holiday_skip'] ?></td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>