            <footer class="max-footer">
                <span>Max Rebrands Aplicativos</span>
                <small>Painel profissional xciptv Maxrebrands.</small>
            </footer>
        </div>
    </main>
</div>
<div class="max-sidebar-overlay" id="sidebar-overlay" aria-hidden="true"></div>

<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script src="<?=e(panel_url('js/particles.js'))?>"></script>
<script src="<?=e(panel_url('js/alerts.js'))?>"></script>
<script>
(function($){
    'use strict';

    var $wrapper = $('#wrapper');
    var $overlay = $('#sidebar-overlay');
    var $toggle = $('#menu-toggle');

    function setMenuState(open) {
        if (window.innerWidth < 768) {
            $wrapper.toggleClass('toggled', open);
            $('body').toggleClass('max-menu-open', open);
            $overlay.toggleClass('show', open).attr('aria-hidden', open ? 'false' : 'true');
            $toggle.attr('aria-expanded', open ? 'true' : 'false');
        } else {
            $wrapper.toggleClass('toggled', !open);
            $('body').removeClass('max-menu-open');
            $overlay.removeClass('show').attr('aria-hidden', 'true');
            $toggle.attr('aria-expanded', open ? 'true' : 'false');
        }
    }

    $toggle.on('click', function(e){
        e.preventDefault();
        if (window.innerWidth < 768) {
            setMenuState(!$wrapper.hasClass('toggled'));
        } else {
            $wrapper.toggleClass('toggled');
        }
    });

    $overlay.on('click', function(){ setMenuState(false); });
    $('.max-menu a').on('click', function(){ if (window.innerWidth < 768) setMenuState(false); });

    $(window).on('resize', function(){
        if (window.innerWidth >= 768) {
            $('body').removeClass('max-menu-open');
            $overlay.removeClass('show').attr('aria-hidden', 'true');
        }
    });

    if ($('#Dtable').length) {
        $('#Dtable').DataTable({
            lengthMenu: [[10,25,50,-1],[10,25,50,'Todos']],
            ordering: false,
            language: {
                search: 'Buscar:', lengthMenu: 'Mostrar _MENU_ registros',
                info: 'Mostrando _START_ até _END_ de _TOTAL_ registros',
                infoEmpty: 'Nenhum registro disponível', zeroRecords: 'Nenhum resultado encontrado',
                paginate: {first:'Primeiro',last:'Último',next:'Próximo',previous:'Anterior'}
            }
        });
    }

    $('[data-confirm]').on('click', function(e){
        var message = $(this).data('confirm') || 'Confirmar esta ação?';
        if (!window.confirm(message)) e.preventDefault();
    });

    $('form[data-confirm-form]').on('submit', function(e){
        var message = $(this).data('confirm-form') || 'Confirmar esta ação?';
        if (!window.confirm(message)) e.preventDefault();
    });

    window.setTimeout(function(){
        $('.max-flash-alert').fadeTo(350, 0).slideUp(250);
    }, 4200);
})(jQuery);
</script>
</body>
</html>
