<div class="row">
    <div class="col-xs-12">
        <div class="box box-danger mb0" style="height:54vh!important; overflow: hidden;">
            <div class="box-body" style="height: 100%;">
                <!-- TAB NAVIGATION -->
                <ul class="nav nav-tabs" role="tablist">
                    <?php if ($uprawnienia['ModulRejestruOdbic']['bCzyUruchamianieGrupa'] == 'true') : ?>
                        <?php if('SGB' == trim($this->request->getSession()->read('grupaLicencji'))) { ?>
                            <li class="active"><a href="#tab3" role="tab" data-toggle="tab">Obecność</a></li>
                        <?php } else { ?>
                            <li class="active"><a href="#tab3" role="tab" data-toggle="tab">Odbicia</a></li>
                        <?php } ?>
                    <?php endif; ?>
                </ul>
                <!-- TAB CONTENT -->
                <div class="tab-content">
                    <?php if ($uprawnienia['ModulRejestruOdbic']['bCzyUruchamianieGrupa'] == 'true') : ?>
                    <div class="active tab-pane fade in" id="tab3" style="max-height: 45vh; overflow-y: auto; overflow-x: hidden; padding: 10px 10px 0px 10px;">
                        <div class="loader-overlapping custom-loader" id="table-loading" style="display: block;">
                            <div class="loader"></div>
                        </div>
                        <?php echo $this->element('odbicie_panel', array('nrewid'=>$_nrewid, 'tab'=>3)); ?>
                        <div class="box-body table-responsive table-fixed-height" data-container="table-odbicia" style="position: relative; width: 100%;">
                            <div class="no-data">
                                <p>Brak danych</p>
                            </div>
                        </div>
                    </div>
                </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>
</div>

<?php echo $this->element('odbicie_modal', array('nrewid'=>$_nrewid, 'tab'=>3)); ?>

<script>
    $(function () {
//        initiateFullCalendar();
        calendarInit();

        //setTimeout(function () {
        //    $(document).find('.custom-loader').css('display', 'block');
        //    $.ajax({
        //        url: local_url + 'calendar_feed_ajax_employee/<?php //echo $_nrewid; ?>//',
        //        method: 'POST',
        //        dataType: 'html'
        //    }).done(function (response) {
        //        $('#ModalContentEmployee').html(response);
        //        $(document).find('.custom-loader').css('display', 'none');
        //        $('#tab2').css('padding-bottom', '0px');
        //    });
        //});
    });
</script>

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