<table id="KaryTable" class="table hover-rows custom-table HalfTable" data-start-sort="1" data-start-sort-direction="desc" data-start-height="25vh">
    <thead>
    <tr class="text-uppercase">
        <th>Kara</th>
        <th>Od</th>
        <th>Do</th>
    </tr>
    </thead>
    <tbody>
    <?php if (!empty($punishes['bKary']['bKara'])): ?>
        <?php foreach ($punishes['bKary']['bKara'] as $k => $punish): ?>
            <tr
                <?php if (!empty($punish['bInformacjeDodatkowe'])): ?>
                    class="more-info-append" data-append-to="#more-info-container"
                    data-more-info="<?php echo $punish['bInformacjeDodatkowe']; ?>"
                <?php endif; ?>
            >
                <td class="info-addon"><?php echo $punish['bKaraOpisKodu']; ?></td>
                <td><span class="span-date"><?php echo date('Y-m-d', strtotime($punish['bDataOd'])); ?></span></td>
                <td><span class="span-date"><?php echo date('Y-m-d', strtotime($punish['bDataDo'])); ?></span></td>
            </tr>
        <?php endforeach; ?>
    <?php endif; ?>
    </tbody>
</table>

<?php echo $this->element('alert_close'); ?>