<table id="BadaniaTable" 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>Badanie</th>
        <th>Data badania</th>
        <th>Data ważności</th>
        <th>Uwagi</th>
    </tr>
    </thead>
    <tbody>
    <?php if (!empty($badania['bBadaniaLekarskie']['bBadanieLekarskie'])): ?>
        <?php foreach ($badania['bBadaniaLekarskie']['bBadanieLekarskie'] as $k => $badanie): ?>
            <tr
                <?php if (!empty($badanie['bInformacjeDodatkowe'])): ?>
                    class="more-info-append" data-append-to="#more-info-container"
                    data-more-info="<?php echo $badanie['bInformacjeDodatkowe']; ?>"
                <?php endif; ?>
            >
                <td class="info-addon"><?php echo $badanie['bBadanieOpisKodu']; ?></td>
                <td><span class="span-date"><?php echo $badanie['bDataBadania']; ?></span></td>
                <td><span class="span-date"><?php echo $badanie['bDataWaznosci']; ?></span></td>
                <td><?php if (!empty($badanie['bUwagi'])) echo $badanie['bUwagi']; ?></td>
            </tr>
        <?php endforeach; ?>
    <?php endif; ?>
    </tbody>
</table>

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