                    <!-- end:: Content -->
                            </div>
                        </div>
                    </div>

                    <div class="kt-footer kt-grid__item" id="kt_footer">
                        <div class="kt-container kt-container--fluid">
                            <div class="kt-footer__wrapper">
                                <div class="kt-footer__copyright">
                                   &copy <?= date('Y'); ?> WebMatriks.
                                </div>
                                <div class="kt-footer__menu">
                                  <a href="https://www.webmatriks.com/" target="_blank">Web Design &amp; Development by WebMatriks</a>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>

        <script>
            var KTAppOptions = {
                "colors": {
                    "state": {
                        "brand": "#716aca",
                        "light": "#ffffff",
                        "dark": "#282a3c",
                        "primary": "#5867dd",
                        "success": "#34bfa3",
                        "info": "#36a3f7",
                        "warning": "#ffb822",
                        "danger": "#fd3995"
                    },
                    "base": {
                        "label": ["#c5cbe3", "#a1a8c3", "#3d4465", "#3e4466"],
                        "shape": ["#f0f3ff", "#d9dffa", "#afb4d4", "#646c9a"]
                    }
                }
            };
        </script>

        <script src="<?= base_url('assets/plugins/general/jquery/dist/jquery.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/popper.js/dist/umd/popper.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/bootstrap/dist/js/bootstrap.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/js-cookie/src/js.cookie.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/perfect-scrollbar/dist/perfect-scrollbar.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/sticky-js/dist/sticky.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/jquery-form/dist/jquery.form.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/block-ui/jquery.blockUI.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/js/global/integration/plugins/bootstrap-datepicker.init.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/bootstrap-datetime-picker/js/bootstrap-datetimepicker.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/bootstrap-datetime-picker/js/locales/bootstrap-datetimepicker.fr.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/bootstrap-timepicker/js/bootstrap-timepicker.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/js/global/integration/plugins/bootstrap-timepicker.init.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/bootstrap-daterangepicker/daterangepicker.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/bootstrap-select/dist/js/bootstrap-select.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/jquery-validation/dist/jquery.validate.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/jquery-validation/dist/additional-methods.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/js/global/integration/plugins/jquery-validation.init.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/general/es6-promise-polyfill/promise.min.js'); ?>" type="text/javascript"></script>

        <script src="<?= base_url('assets/js/scripts.bundle.js'); ?>" type="text/javascript"></script>

        <?php
            $router = service('router');
            $function_name = $router->methodName();
            if ($function_name == 'centers_report' || $function_name == 'last_login' || $function_name == 'target_report' || $function_name == 'view_centers' || $function_name == 'view_courses' || $function_name == 'view_sub_courses') {
        ?>
        <script src="<?= base_url('assets/plugins/custom/plugins/jquery-ui/jquery-ui.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net/js/jquery.dataTables.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-bs4/js/dataTables.bootstrap4.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/js/global/integration/plugins/datatables.init.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-autofill/js/dataTables.autoFill.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-autofill-bs4/js/autoFill.bootstrap4.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-buttons/js/dataTables.buttons.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-buttons/js/buttons.colVis.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-colreorder/js/dataTables.colReorder.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-fixedcolumns/js/dataTables.fixedColumns.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-keytable/js/dataTables.keyTable.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-responsive/js/dataTables.responsive.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-rowgroup/js/dataTables.rowGroup.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-rowreorder/js/dataTables.rowReorder.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-scroller/js/dataTables.scroller.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/datatables.net-select/js/dataTables.select.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/js/pages/crud/datatables/basic/paginations.js'); ?>" type="text/javascript"></script>
       <?php } ?>

        <script src="<?= base_url('assets/plugins/custom/jstree/dist/jstree.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/plugins/custom/jkanban/dist/jkanban.min.js'); ?>" type="text/javascript"></script>
        <script src="<?= base_url('assets/js/custom.js?v=1'); ?>" type="text/javascript"></script>

        <script type="text/javascript">
           function confirmDelete(delUrl){
                if (confirm("Are you really want to delete.?")){
                    document.location = delUrl;
                }
            }
            function readURL(input) {
                if (input.files && input.files[0]) {
                    var reader = new FileReader();
                    reader.onload = function (e) {
                        $('#profile-img-tag').attr('src', e.target.result);
                    }
                    reader.readAsDataURL(input.files[0]);
                }
            }
            $("#image").change(function(){
                readURL(this);
            });
            $('#datepicker').datepicker({
                uiLibrary: 'bootstrap4',
                format: 'dd-mm-yyyy'
            });
            $('#datepicker1').datepicker({
                uiLibrary: 'bootstrap4',
                format: 'dd-mm-yyyy'
            });
        </script>

    </body>
</html>