<!-- jQuery 3 -->
<!-- <script src="<?=$global['head-url'];?>asset/bower_components/jquery/dist/jquery.min.js"></script> -->
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="<?=$global['head-url'];?>asset/bower_components/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
  $.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.7 -->
<script src="<?=$global['head-url'];?>asset/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Morris.js charts -->
<script src="<?=$global['head-url'];?>asset/bower_components/raphael/raphael.min.js"></script>
<script src="<?=$global['head-url'];?>asset/bower_components/morris.js/morris.min.js"></script>
<!-- Sparkline -->
<script src="<?=$global['head-url'];?>asset/bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="<?=$global['head-url'];?>asset/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="<?=$global['head-url'];?>asset/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- jQuery Knob Chart -->
<script src="<?=$global['head-url'];?>asset/bower_components/jquery-knob/dist/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="<?=$global['head-url'];?>asset/bower_components/moment/min/moment.min.js"></script>
<script src="<?=$global['head-url'];?>asset/bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="<?=$global['head-url'];?>asset/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="<?=$global['head-url'];?>asset/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<!-- Slimscroll -->
<script src="<?=$global['head-url'];?>asset/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="<?=$global['head-url'];?>asset/bower_components/fastclick/lib/fastclick.js"></script>
<!-- Select2 -->
<script src="<?=$global['head-url'];?>asset/bower_components/select2/dist/js/select2.full.min.js"></script>
<!-- bootstrap time picker -->
<script src="<?=$global['head-url'];?>asset/plugins/timepicker/bootstrap-timepicker.min.js"></script>
<!-- AdminLTE App -->
<script src="<?=$global['head-url'];?>asset/dist/js/adminlte.min.js"></script>
<script src="<?=$global['head-url'];?>asset/dist/js/ui-notification.js"></script>
<script src="<?=$global['head-url'];?>asset/plugins/sweetalert/lib/sweet-alert.min.js"></script>
<script src="<?=$global['head-url'];?>asset/plugins/toastr/toastr.js"></script>
<script src="<?=$global['head-url'];?>asset/plugins/iCheck/icheck.min.js"></script>
<!-- bootstrap color picker -->
<script src="<?=$global['head-url'];?>asset/bower_components/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js"></script>
<!-- bootstrap color picker -->
<script src="<?=$global['head-url'];?>asset/plugins/clockpicker/bootstrap-clockpicker.min.js"></script>
<script src="<?=$global['head-url'];?>asset/js/date.format.js"></script>
<script src="<?=$global['head-url'];?>asset/js/function.js?<?=mt_rand(10,10000);?>"></script>
<script src="<?=$global['head-url'];?>asset/js/api_config.js?<?=mt_rand(10,10000);?>"></script>
<!-- Add fancyBox -->
<script type="text/javascript" src="<?=$global['head-url'];?>asset/plugins/fancybox/jquery.fancybox.pack.js?v=2.1.5"></script>
<script src="<?=$global['head-url'];?>asset/plugins/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
    jQuery(document).ready(function() {
        UINotifications.init();
    });
    tinymce.init({
        selector: ".tinymce",
        plugins: [
        "advlist autolink lists link image charmap print preview anchor",
        "searchreplace visualblocks code fullscreen ",
        "insertdatetime media table contextmenu paste jbimages",
        "textcolor",
        "autoresize",
        "lineheight"
        ],
        toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image jbimages | forecolor backcolor | lineheightselect",
        menubar:true,
        statusbar: true,
        lineheight_formats: "8pt 9pt 10pt 11pt 12pt 14pt 16pt 18pt 20pt 22pt 24pt 26pt 36pt",
        relative_urls: false,
        forced_root_block : false,
        height : 200
    });
    $(document).ready(function() {
        $(".fancybox").fancybox({
            padding : 0
        });
        $(".datepickers").datepicker({
            format: "dd-mm-yyyy",
            todayBtn: "linked",
            autoclose: true,
            defaultViewDate: "today"
        });
        $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
            checkboxClass: 'icheckbox_minimal-blue',
            radioClass   : 'iradio_minimal-blue'
        });
    });
</script>
<!-- bootstrap time picker -->
<script src="<?=$global['head-url'];?>asset/plugins/timepicker/moment.js"></script>
<script src="<?=$global['head-url'];?>asset/plugins/timepicker/bootstrap-datetimepicker.js"></script>
<script src="<?=$global['head-url'];?>asset/js/push_notification.js"></script>
<!-- <script src="<?=$global['head-url'];?>asset/js/push_notif.js?<?=mt_rand(10,1000);?>"></script> -->
<div id="win-loader" class="window-loader" style="display: none;">
    <div class="wload-wrap">
        <div class="wload-icon">
            <img src="<?=$global['head-url'].'img/loader.gif';?>" alt="icon">
        </div>
    </div>
</div>
<script type="text/javascript">
    function win_loader(param){
        if(param == "open"){
            $("#win-loader").show();
        } else {
            $("#win-loader").fadeOut();
        }
    }
</script>