<?php if (!empty(serviceTime())): ?>
    <table class="table table-striped" style='background: #1f0707; font-size: 15px;'>
        <thead>
            <tr>
                <th>Day</th>
                <?php foreach (serviceTime() as $key => $serviceTimeHead): ?>
                    <th><?php echo $key ?></th>
                <?php endforeach; ?>
            </tr>
        </thead>
        <tbody>
            <tr <?php date('D') === 'Sun' ? print'class="active-day"' : '' ?>>
                <td>Sun</td>
                <?php foreach (serviceTime() as $key => $serviceTimeHead): ?>
                    <td><?php echo $serviceTimeHead['Sun']->opened == '3' ? strtoupper($serviceTimeHead['Sun']->start . '-' . $serviceTimeHead['Sun']->end) : 'Closed' ?></td>
                <?php endforeach; ?>
            </tr>
            <tr <?php date('D') === 'Mon' ? print'class="active-day"' : '' ?>>
                <td>Mon</td>
                <?php foreach (serviceTime() as $key => $serviceTimeHead): ?>
                    <td><?php echo $serviceTimeHead['Mon']->opened == '3' ? strtoupper($serviceTimeHead['Mon']->start . '-' . $serviceTimeHead['Mon']->end) : 'Closed' ?></td>
                <?php endforeach; ?>
            </tr>
            <tr <?php date('D') === 'Tue' ? print'class="active-day"' : '' ?>>
                <td>Tue</td>
                <?php foreach (serviceTime() as $key => $serviceTimeHead): ?>
                    <td><?php echo $serviceTimeHead['Tue']->opened == '3' ? strtoupper($serviceTimeHead['Tue']->start . '-' . $serviceTimeHead['Tue']->end) : 'Closed' ?></td>
                <?php endforeach; ?>
            </tr>
            <tr <?php date('D') === 'Wed' ? print'class="active-day"' : '' ?>>
                <td>Wed</td>
                <?php foreach (serviceTime() as $key => $serviceTimeHead): ?>
                    <td><?php echo $serviceTimeHead['Wed']->opened == '3' ? strtoupper($serviceTimeHead['Wed']->start . '-' . $serviceTimeHead['Wed']->end) : 'Closed' ?></td>
                <?php endforeach; ?>
            </tr>
            <tr <?php date('D') === 'Thu' ? print'class="active-day"' : '' ?>>
                <td>Thu</td>
                <?php foreach (serviceTime() as $key => $serviceTimeHead): ?>
                    <td><?php echo $serviceTimeHead['Thu']->opened == '3' ? strtoupper($serviceTimeHead['Thu']->start . '-' . $serviceTimeHead['Thu']->end) : 'Closed' ?></td>
                <?php endforeach; ?>
            </tr>
            <tr <?php date('D') === 'Fri' ? print'class="active-day"' : '' ?>>
                <td>Fri</td>
                <?php foreach (serviceTime() as $key => $serviceTimeHead): ?>
                    <td><?php echo $serviceTimeHead['Fri']->opened == '3' ? strtoupper($serviceTimeHead['Fri']->start . '-' . $serviceTimeHead['Fri']->end) : 'Closed' ?></td>
                <?php endforeach; ?>
            </tr>
            <tr <?php date('D') === 'Sat' ? print'class="active-day"' : '' ?>>
                <td>Sat</td>
                <?php foreach (serviceTime() as $key => $serviceTimeHead): ?>
                    <td><?php echo $serviceTimeHead['Sat']->opened == '3' ? strtoupper($serviceTimeHead['Sat']->start . '-' . $serviceTimeHead['Sat']->end) : 'Closed' ?></td>
                <?php endforeach; ?>
            </tr>
        </tbody>
    </table>
<?php endif; ?>