<table id="SzkoleniaTable" class="table hover-rows custom-table HalfTable" data-start-sort="2" data-start-sort-direction="desc" data-start-height="25vh">
    <thead>
    <tr class="text-uppercase">
        <th>Szkolenie</th>
        <th>Tytuł</th>
        <th>Od</th>
        <th>Do</th>
        <th>Ważne do</th>
    </tr>
    </thead>
    <tbody>
    <?php if (!empty($trainings['bSzkolenia']['bSzkolenie'])): ?>
    <?php foreach ($trainings['bSzkolenia']['bSzkolenie'] as $k => $training): ?>
        <tr
            <?php if (!empty($training['bInformacjeDodatkowe'])): ?>
                class="more-info-append" data-append-to="#more-info-container"
                data-more-info="<?php echo $training['bInformacjeDodatkowe']; ?>"
            <?php endif; ?>
        >
            <td class="info-addon"><?php echo $training['bSzkolenieOpisKodu']; ?></td>
            <td><?php echo $training['bTytul']; ?></td>
            <td><span class="span-date"><?php echo $training['bDataOd']; ?></span></td>
            <td><span class="span-date"><?php echo $training['bDataDo']; ?></span></td>
            <td><?php echo $training['bDataWaznosci']; ?></td>
        </tr>
    <?php endforeach; ?>
    <?php endif; ?>
    </tbody>
</table>

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