<script src="<?php echo base_url('assets/js/jquery.min.js') ?>"></script>   
<script src="<?php echo base_url('assets/js/jquery.tablesorter.min.js') ?>"></script> 
<script src="<?php echo base_url('assets/js/bootstrap.min.js') ?>"></script>
<script src="<?php echo base_url('assets/js/jquery.mask.min.js') ?>"></script>
<script src="<?php echo base_url('assets/js/script.js') ?>"></script>
<script src="<?php echo base_url('assets/js/adminlte.min.js') ?>"></script>
<script src="<?php echo base_url('assets/js/ckeditor.js') ?>"></script>
<script src="<?php echo base_url('assets/js/pt.js') ?>"></script>
<script src="<?php echo base_url('assets/js/wow.js') ?>"></script>
<script src="<?php echo base_url('assets/js/sweetalert.min.js') ?>"></script>
<script src="<?php echo base_url('assets/js/jquery.inputfile.js') ?>"></script>
<script src="<?php echo base_url('assets/js/Chart.min.js') ?>"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.11.3/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.11.3/js/dataTables.bootstrap.min.js"></script>
<script type="text/javascript">
    $('input[name="assinatura_alunos"]').inputfile({
        uploadText: '<span class="glyphicon glyphicon-pencil"></span> Escoher Assinatura',

        removeText: '<span class="glyphicon glyphicon-trash"></span>',

        restoreText: '<span class="glyphicon glyphicon-remove"></span>',

        uploadButtonClass: 'btn btn-primary',

        removeButtonClass: 'btn btn-danger'

    });

    $('input[name="imagem_cursos"]').inputfile({
        uploadText: '<i class="fa fa-camera-retro" aria-hidden="true"></i> Escoher Imagem',

        removeText: '<span class="glyphicon glyphicon-trash"></span>',

        restoreText: '<span class="glyphicon glyphicon-remove"></span>',

        uploadButtonClass: 'btn btn-primary',

        removeButtonClass: 'btn btn-danger'

    });
    new WOW().init();
    //Date picker
    $(function () {
        var data = new Date();
        var dia = data.getDate();
        var mes = data.getMonth();
        var ano = data.getFullYear();
        var str_data = dia + '/' + (mes + 1) + '/' + ano;
        $('.datas').daterangepicker({
            singleDatePicker: true,
            maxDate: str_data,
            locale: {
                format: 'DD/MM/YYYY',
                "applyLabel": "Aplicar",
                "cancelLabel": "Cancelar",
                "fromLabel": "De",
                "toLabel": "Até",
                "customRangeLabel": "Custom",
                "daysOfWeek": [
                    "Dom",
                    "Seg",
                    "Ter",
                    "Qua",
                    "Qui",
                    "Sex",
                    "Sáb"
                ],
                "monthNames": [
                    "Janeiro",
                    "Fevereiro",
                    "Março",
                    "Abril",
                    "Maio",
                    "Junho",
                    "Julho",
                    "Agosto",
                    "Setembro",
                    "Outubro",
                    "Novembro",
                    "Dezembro"
                ],
                "firstDay": 0
            },
            opens: 'center'
        }, function (start, end, label) {});
    });
</script>
<?php if (!empty($this->uri->segment(2)) && $this->uri->segment(2) !== 'estatisticas_curso') { ?>
<script>
    ClassicEditor
            .create(document.querySelector('#editor'), {
                language: 'pt'

            })
            
</script>
<?php } ?>
<script>
    $(document).ready(function () {
        $('.btn-mEditCurso').on('click', function () {
            var doc = $('html, body');
            var id  = $(this).data("id");
            $('#' + id).toggle();

            doc.animate({
    
            scrollTop: $('#' +id).offset().top
        }, 500);
           
        });
        <?php if (!empty($this->uri->segment(2)) && $this->uri->segment(2) !== 'estatisticas_curso') { ?>

        $(function () {
            $('.tablesorter').tablesorter();
        });
        $('.tablesorter').tablesorter({
             sortForce: [[0,0]],
            // Envia os cabeçalhos 
            headers: {
                // A segunda coluna (começa do zero) 
                0: {
                    // Desativa a ordenação para essa coluna 
                    sorter: false
                },
                1: {

                    sorter: true
                },
                2: {
                    // Ativa o parser de data na coluna 4 (começa do 0)
                    sorter: true
                },
                4: {
                    // Ativa o parser de data na coluna 4 (começa do 0)
                    sorter: false
                },
                5: {
                    // Ativa o parser de data na coluna 4 (começa do 0)
                    sorter: false
                }
            },
            dateFormat: 'dd/mm/yyyy'
        });
        <?php } ?>
    });
</script>
<script>
$(document).ready(function () {
    $('.valor').mask('000.000.000.000.000,00', {reverse: true});
});
</script>
<!-- Main Footer -->
<footer class="main-footer">
    <!-- Default to the left -->
    <strong>Copyright &copy; <?= date('Y') ?> Amazônia Cursos </strong> Todos os direitos reservados.
</footer>


<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<div class="control-sidebar-bg"></div>
</div>
</body>
</html> 
