<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="OcenaTable" class="table hover-rows custom-table FullTable" data-start-sort="1"
                       data-start-sort-direction="desc" data-start-height="50vh">
                    <thead>
                    <tr class="text-uppercase">
                        <th>Ocena</th>
                        <th>Za okres od</th>
                        <th>Za okres do</th>
                        <th>Data następnej oceny</th>
                        <th>Punktów</th>
                        <th class="no-sortable"></th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php if (isset($ratings['bOceny']['bOcena'])) : ?>
                        <?php foreach ($ratings['bOceny']['bOcena'] as $k => $rating): ?>
                            <tr
                                <?php if (!empty($rating['bInformacjeDodatkowe'])): ?>
                                    class="more-info-append" data-append-to="#more-info-container"
                                    data-more-info="<?php echo $rating['bInformacjeDodatkowe']; ?>"
                                <?php endif; ?>
                            >
                                <td class="info-addon"><?php echo $rating['bKod']['cOpis']; ?></td>
                                <td><span class="span-date"><?php echo $rating['bDataOd']; ?></span></td>
                                <td><span class="span-date"><?php echo $rating['bDataDo']; ?></span></td>
                                <td><span
                                        class="span-date"><?php if (!empty($rating['bDataNastepnej'])) echo $this->App->notEmpty($rating['bDataNastepnej'], 'Y-m-d'); ?></span>
                                </td>
                                <td><span class="span-date"><?php echo $rating['bPunktow1']; ?></span></td>
                                <td class="text-right">
                                    <?php
                                    /**
                                     * <?php if($rating['bCzyAktualnyUserMozePrzegladac'] == 'true') : ?>
                                     * <a rel="tooltip" data-placement="left" title="Pokaż ocenę" class="btn btn-success" href="/pokaz_ocene/<?php echo $rating['bGid']; ?>">
                                     * <i class="fa fa-eye"></i>
                                     * </a>
                                     * <?php endif; ?>
                                     */
                                    ?>
                                </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'); ?>
