<div class="row">
    <div class="col-xs-12">
        <div class="box box-danger mb0">
            <div class="box-body table-responsive table-fixed-height">
                <table id="RodzinaTable" class="table hover-rows custom-table FullTable" data-start-sort="2"
                       data-start-sort-direction="desc" data-start-height="50vh">
                    <thead>
                    <tr class="text-uppercase">
                        <th>Nazwisko i imię</th>
                        <th>Pokrewieństwo</th>
                        <th>Data urodzenia</th>
                        <th>Płeć</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php if (isset($family['bCzlonkowieRodziny']['bCzlonekRodziny'])) : ?>
                        <?php foreach ($family['bCzlonkowieRodziny']['bCzlonekRodziny'] as $k => $fam): ?>
                            <tr
                                <?php if (!empty($fam['bInformacjeDodatkowe'])): ?>
                                    class="more-info-append" data-append-to="#more-info-container"
                                    data-more-info="<?php echo $fam['bInformacjeDodatkowe']; ?>"
                                <?php endif; ?>
                            >
                                <td class="info-addon"><?php echo $fam['bNazwiskoIImie']; ?></td>
                                <td><?php echo $fam['bStopienPokrewienstwaOpisKodu']; ?></td>
                                <td><span class="span-date"><?php echo $fam['bDataUrodzenia']; ?></span></td>
                                <td><?php echo $fam['bPlec']; ?></td>
                            </tr>
                        <?php endforeach; ?>
                    <?php endif; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<div class="row more-info-container">
    <div class="col-xs-12">
        <div class="box">
            <div class="box-header">
                <h2 class="box-title">Informacje dodatkowe</h2>
            </div>
            <div class="box-body" id="more-info-container">

            </div>
        </div>
    </div>
</div>

<script>
    $(function () {
        $('.page-name:first-of-type').html('<?php echo $pageName; ?>');
    })
</script>

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