<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
if($this->session->userdata('db_instance') == 'T'){
    $sys_year= '2022';
}else{
    $sys_year='?';
    echo "<div style='margin: 50px'>";
    echo 'Error at Conn DB SysYear <br>';
    echo 'يجب تسجيل خروجك من أرشيف النظام الموحد قبل الدخول للنظام الموحد للسنة الحالية <br>';
    echo "<a href='https://gs.gedco.ps/archive/login/logout' > لتسجيل الخروج اضغط هنا </a>";
    echo "</div>";
    die;
}
$base_url = base_url('/welcome');
?>
<!DOCTYPE html>
<html lang="en" dir="rtl">
<head>

    <meta charset="UTF-8">
    <meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=0'>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <!-- Title -->
    <title><?= isset($title) ? $title : ''; ?></title>

    <!-- Favicon -->
    <link rel="icon" href="<?= base_url() ?>assets-t/img/brand/favicon.png" type="image/x-icon"/>

    <!-- Icons css -->
    <link href="<?= base_url() ?>assets-t/css/icons.css" rel="stylesheet">

    <!--  bootstrap css-->
    <link id="style" href="<?= base_url() ?>assets-t/plugins/bootstrap/css/bootstrap.rtl.css" rel="stylesheet" />

    <!-- style css -->
    <link href="<?= base_url() ?>assets-t/css/style.css" rel="stylesheet">
    <link href="<?= base_url() ?>assets-t/css/style-dark.css" rel="stylesheet">
    <link href="<?= base_url() ?>assets-t/css/style-transparent.css" rel="stylesheet">

    <!---Skinmodes css-->
    <link href="<?= base_url() ?>assets-t/css/skin-modes.css" rel="stylesheet" />

    <link rel="stylesheet" href="<?= base_url() ?>assets-t/css/datepicker3.css" type="text/css"/>
    <link rel="stylesheet" href="<?= base_url() ?>assets-t/js/toastr/build/toastr.min.css" type="text/css"/>

    <link rel="stylesheet" href="<?= base_url() ?>assets-t/css/custom.css" type="text/css"/>
    <?= put_headers('css') ?>
    <?php if (isset($css_file)) : ?>
        <link href="<?= base_url($css_file); ?>" rel="stylesheet">
    <?php endif; ?>

</head>

<body class="rtl main-body app horizontal horizontal-hover color-header dark-menu center-logo fixed-layout">

<!-- Loader -->
<div id="global-loader">
    <img src="<?= base_url() ?>assets-t/img/loader.svg" class="loader-img" alt="Loader">
</div>
<!-- /Loader -->

<!-- Page -->
<div class="page">

    <div>
        <!-- main-header -->
        <div class="main-header side-header sticky nav nav-item">
            <div class=" main-container container-fluid">
                <div class="main-header-left ">
                    <div class="responsive-logo">
                        <a href="#" class="header-logo">
                            <img src="<?= base_url() ?>assets-t/img/brand/logo.png" class="mobile-logo logo-1" alt="logo">
                            <img src="<?= base_url() ?>assets-t/img/brand/gedco-logo.png" class="mobile-logo dark-logo-1" alt="logo">
                        </a>
                    </div>
                    <div class="app-sidebar__toggle" data-bs-toggle="sidebar">
                        <a class="open-toggle" href="javascript:void(0);"><i class="header-icon fe fe-align-left" ></i></a>
                        <a class="close-toggle" href="javascript:void(0);"><i class="header-icon fe fe-x"></i></a>
                    </div>
                    <div class="logo-horizontal">
                        <a href="#" class="header-logo">
                            <img src="<?= base_url() ?>assets-t/img/brand/logo.png" class="mobile-logo logo-1" alt="logo">
                            <img src="<?= base_url() ?>assets-t/img/brand/gedco-logo.png" class="mobile-logo dark-logo-1" alt="logo">
                        </a>
                    </div>
                    <div class="main-header-center ms-4 d-sm-none d-md-none d-lg-block form-group">
                        <input class="form-control" placeholder="النظام الموحد ... السنة : <?=  $sys_year ?> " type="search">
                        <button class="btn"><i class="fa fa-suitcase"></i></button>
                    </div>
                </div>


                <div class="main-header-right">
                    <button class="navbar-toggler navresponsive-toggler d-lg-none ms-auto" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent-4" aria-controls="navbarSupportedContent-4" aria-expanded="false" aria-label="Toggle navigation">
                        <span class="navbar-toggler-icon fe fe-more-vertical "></span>
                    </button>
                    <div class="mb-0 navbar navbar-expand-lg navbar-nav-right responsive-navbar navbar-dark p-0">
                        <div class="collapse navbar-collapse" id="navbarSupportedContent-4">
                            <ul class="nav nav-item header-icons navbar-nav-right ms-auto">
                                <li class="dropdown nav-item main-header-notification d-flex">
                                    <a class="new nav-link"  data-bs-toggle="dropdown" href="javascript:void(0);" title="الأنظمة">
                                        <i class="fa fa-cog custom-icon-header"></i>
                                        <span class="pulse-danger"></span>
                                    </a>
                                    <div class="dropdown-menu">
                                        <div class="menu-header-content text-start border-bottom">
                                            <div class="d-flex">
                                                <a href="<?=$base_url?>/csystem" class="dropdown-title mb-1 tx-15 font-weight-semibold">الأنظمة</a>
                                            </div>
                                        </div>
                                        <div class="main-notification-list System-scroll">
                                            <?= get_systems_temp1() ?>
                                            <a class='d-flex p-3 border-bottom' href="https://gs.gedco.ps/Trading/">
                                                <div class='notifyimg bg-pink'>
                                                    <i class='far fa-folder-open text-white'></i>
                                                </div>
                                                <div class='ms-3'>
                                                    <h5 class='notification-label py-2'>النظام التجاري</h5>
                                                </div>
                                                <div class='ms-auto'><i class='las la-angle-right text-end text-muted'></i> </div>
                                            </a>

                                            <a class='d-flex p-3 border-bottom' href="https://gs.gedco.ps/Commercial/">
                                                <div class='notifyimg bg-pink'>
                                                    <i class='far fa-folder-open text-white'></i>
                                                </div>
                                                <div class='ms-3'>
                                                    <h5 class='notification-label py-2'>النظام التجاري الجديد</h5>
                                                </div>
                                                <div class='ms-auto'><i class='las la-angle-right text-end text-muted'></i> </div>
                                            </a>
                                        </div>
                                        <div class="dropdown-footer">
                                            <a class="btn btn-primary btn-sm btn-block" href="#">عرض الكل</a>
                                        </div>
                                    </div>
                                </li>

                                <li class="dropdown nav-item">
                                    <a class="new nav-link theme-layout nav-link-bg layout-setting" >
                                        <span class="dark-layout" title="فاتح"><svg xmlns="http://www.w3.org/2000/svg" class="header-icon-svgs" width="24" height="24" viewBox="0 0 24 24"><path d="M20.742 13.045a8.088 8.088 0 0 1-2.077.271c-2.135 0-4.14-.83-5.646-2.336a8.025 8.025 0 0 1-2.064-7.723A1 1 0 0 0 9.73 2.034a10.014 10.014 0 0 0-4.489 2.582c-3.898 3.898-3.898 10.243 0 14.143a9.937 9.937 0 0 0 7.072 2.93 9.93 9.93 0 0 0 7.07-2.929 10.007 10.007 0 0 0 2.583-4.491 1.001 1.001 0 0 0-1.224-1.224zm-2.772 4.301a7.947 7.947 0 0 1-5.656 2.343 7.953 7.953 0 0 1-5.658-2.344c-3.118-3.119-3.118-8.195 0-11.314a7.923 7.923 0 0 1 2.06-1.483 10.027 10.027 0 0 0 2.89 7.848 9.972 9.972 0 0 0 7.848 2.891 8.036 8.036 0 0 1-1.484 2.059z"/></svg></span>
                                        <span class="light-layout" title="داكن" ><svg xmlns="http://www.w3.org/2000/svg" class="header-icon-svgs" width="24" height="24" viewBox="0 0 24 24"><path d="M6.993 12c0 2.761 2.246 5.007 5.007 5.007s5.007-2.246 5.007-5.007S14.761 6.993 12 6.993 6.993 9.239 6.993 12zM12 8.993c1.658 0 3.007 1.349 3.007 3.007S13.658 15.007 12 15.007 8.993 13.658 8.993 12 10.342 8.993 12 8.993zM10.998 19h2v3h-2zm0-17h2v3h-2zm-9 9h3v2h-3zm17 0h3v2h-3zM4.219 18.363l2.12-2.122 1.415 1.414-2.12 2.122zM16.24 6.344l2.122-2.122 1.414 1.414-2.122 2.122zM6.342 7.759 4.22 5.637l1.415-1.414 2.12 2.122zm13.434 10.605-1.414 1.414-2.122-2.122 1.414-1.414z"/></svg></span>
                                    </a>
                                </li>


                                <li class="dropdown nav-item main-header-notification d-flex">
                                    <a class="new nav-link"  data-bs-toggle="dropdown" href="javascript:void(0);">
                                        <svg xmlns="http://www.w3.org/2000/svg" class="header-icon-svgs" width="24" height="24" viewBox="0 0 24 24"><path d="M19 13.586V10c0-3.217-2.185-5.927-5.145-6.742C13.562 2.52 12.846 2 12 2s-1.562.52-1.855 1.258C7.185 4.074 5 6.783 5 10v3.586l-1.707 1.707A.996.996 0 0 0 3 16v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-2a.996.996 0 0 0-.293-.707L19 13.586zM19 17H5v-.586l1.707-1.707A.996.996 0 0 0 7 14v-4c0-2.757 2.243-5 5-5s5 2.243 5 5v4c0 .266.105.52.293.707L19 16.414V17zm-7 5a2.98 2.98 0 0 0 2.818-2H9.182A2.98 2.98 0 0 0 12 22z"/></svg><span class=" pulse"></span>
                                    </a>
                                    <div class="dropdown-menu">
                                        <div class="menu-header-content text-start border-bottom">
                                            <div class="d-flex">
                                                <h6 class="dropdown-title mb-1 tx-15 font-weight-semibold">الاشعارات</h6>
                                                <span class="badge badge-pill badge-warning ms-auto my-auto float-end">قراءة الكل</span>
                                            </div>
                                            <p class="dropdown-title-text subtext mb-0 op-6 pb-0 tx-12 ">لديك اشعار غير مقروء</p>
                                        </div>
                                        <div class="main-notification-list Notification-scroll">
                                            <a class="d-flex p-3 border-bottom" href="#">
                                                <div class="notifyimg bg-pink">
                                                    <i class="far fa-folder-open text-white"></i>
                                                </div>
                                                <div class="ms-3">
                                                    <h5 class="notification-label mb-1">اشعار تجريبي</h5>
                                                    <div class="notification-subtext">منذ 10 ساعات</div>
                                                </div>
                                                <div class="ms-auto" >
                                                    <i class="las la-angle-right text-end text-muted"></i>
                                                </div>
                                            </a>
                                        </div>
                                        <div class="dropdown-footer">
                                            <a class="btn btn-primary btn-sm btn-block" href="#">عرض الكل</a>
                                        </div>
                                    </div>
                                </li>
                                <li class="nav-item full-screen fullscreen-button">
                                    <a class="new nav-link full-screen-link" href="javascript:void(0);"><svg xmlns="http://www.w3.org/2000/svg" class="header-icon-svgs" width="24" height="24" viewBox="0 0 24 24"><path d="M5 5h5V3H3v7h2zm5 14H5v-5H3v7h7zm11-5h-2v5h-5v2h7zm-2-4h2V3h-7v2h5z"/></svg></a>
                                </li>
                                <li class="nav-link search-icon d-lg-none d-block">
                                    <form class="navbar-form" role="search">
                                        <div class="input-group">
                                            <input type="text" class="form-control" placeholder="Search">
                                            <span class="input-group-btn">
														<button type="reset" class="btn btn-default">
															<i class="fas fa-times"></i>
														</button>
														<button type="submit" class="btn btn-default nav-link resp-btn">
															<svg xmlns="http://www.w3.org/2000/svg" height="24px" class="header-icon-svgs" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>
														</button>
													</span>
                                        </div>
                                    </form>
                                </li>
                                <li class="dropdown main-profile-menu nav nav-item nav-link ps-lg-2 me-3">
                                    <a class="nav-link profile-user d-flex" href="" data-bs-toggle="dropdown">
                                        <div><img alt="" src="<?= base_url() ?>assets-t/img/profile.png" class=""></div>
                                        <div class="d-flex">
                                            <h6 class="text-white ms-2 text-nowrap py-2"><?= get_curr_user()->fullname ?></h6>
                                        </div>
                                    </a>

                                    <div class="dropdown-menu">
                                        <div class="menu-header-content p-3 border-bottom">
                                            <div class="d-flex wd-100p">
                                                <div class="main-img-user">
                                                    <img alt="" src="<?= base_url() ?>assets-t/img/profile.png" class="">
                                                </div>
                                                <div class="ms-3 my-auto">
                                                    <h6 class="tx-15 font-weight-semibold mb-0"><?= get_curr_user()->fullname ?></h6>
                                                    <span class="dropdown-title-text subtext op-6  tx-12"></span>
                                                </div>
                                            </div>
                                        </div>
                                        <a class="dropdown-item text-primary" href="<?= base_url('/settings/users/profile') ?>"><i class="far fa-user-circle"></i>بياناتي</a>
                                        <a class="dropdown-item text-danger" href="<?= base_url('/login/logout') ?>"><i class="far fa-arrow-alt-circle-left"></i> تسجيل خروج</a>
                                    </div>
                                </li>
                                <li class="dropdown main-header-message right-toggle ms-3">
                                    <a class="new nav-link nav-link pe-0" data-bs-toggle="sidebar-right" data-bs-target=".sidebar-right">
                                        <svg xmlns="http://www.w3.org/2000/svg" class="header-icon-svgs" width="24" height="24" viewBox="0 0 24 24"><path d="M4 6h16v2H4zm4 5h12v2H8zm5 5h7v2h-7z"/></svg>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- /main-header -->

        <!-- main-sidebar -->
        <div class="sticky">
            <aside class="app-sidebar">
                <div class="main-sidebar-header active">
                    <a class="header-logo active" href="#">
                        <img src="<?= base_url() ?>assets-t/img/brand/gedco-logo.png" class="main-logo  desktop-logo" alt="logo">
                        <img src="<?= base_url() ?>assets-t/img/brand/gedco-logo.png" class="main-logo  desktop-dark" alt="logo">
                        <img src="<?= base_url() ?>assets-t/img/brand/favicon.png" class="main-logo  mobile-logo" alt="logo">
                        <img src="<?= base_url() ?>assets-t/img/brand/favicon-white.png" class="main-logo  mobile-dark" alt="logo">
                    </a>
                </div>
                <div class="main-sidemenu">
                    <div class="slide-left disabled" id="slide-left"><svg xmlns="http://www.w3.org/2000/svg" fill="#7b8191" width="24" height="24" viewBox="0 0 24 24"><path d="M13.293 6.293 7.586 12l5.707 5.707 1.414-1.414L10.414 12l4.293-4.293z"/></svg></div>
                    <ul class="side-menu">
                        <?= modules::run('settings/Sysmenus/public_get_menu1', 1) ?>
                        <?= modules::run('settings/Sysmenus/public_get_setting', 1) ?>
                    </ul>
                    <div class="slide-right" id="slide-right"><svg xmlns="http://www.w3.org/2000/svg" fill="#7b8191" width="24" height="24" viewBox="0 0 24 24"><path d="M10.707 17.707 16.414 12l-5.707-5.707-1.414 1.414L13.586 12l-4.293 4.293z"/></svg></div>
                </div>
            </aside>
        </div>
        <!-- main-sidebar -->
    </div>

    <!-- main-content -->
    <div class="main-content app-content">

        <!-- container -->
        <div class="main-container container-fluid">
            <?php if (isset($content)) $this->load->view($content); ?>
        </div>
        <!-- /Container -->
    </div>
    <!-- /main-content -->

    <!-- Sidebar-right-->
    <div class="sidebar sidebar-right sidebar-animate">
        <div class="panel panel-primary card mb-0 box-shadow">
            <div class="tab-menu-heading card-img-top-1 border-0 p-3 bg-dark">
                <div class="card-title mb-0">الاشعارات</div>
                <div class="card-options ms-auto">
                    <a href="javascript:void(0);" class="sidebar-remove"><i class="fe fe-x"></i></a>
                </div>
            </div>
            <div class="panel-body tabs-menu-body latest-tasks p-0 border-0">
                <div class="tabs-menu ">
                    <!-- Tabs -->
                    <ul class="nav panel-tabs">
                        <li class="">
                            <a href="#side1" class="active" data-bs-toggle="tab">
                                <svg xmlns="http://www.w3.org/2000/svg"  class="side-menu__icon" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>
                                المراسلات</a>
                        </li>
                        <li class="">
                            <a href="#side2" data-bs-toggle="tab">
                                <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24"  class="side-menu__icon"  height="24" viewBox="0 0 24 24" width="24"><g><path d="M0,0h24v24H0V0z" fill="none"/></g><g><path d="M12,18.5c0.83,0,1.5-0.67,1.5-1.5h-3C10.5,17.83,11.17,18.5,12,18.5z M12,2C6.48,2,2,6.48,2,12s4.48,10,10,10 c5.52,0,10-4.48,10-10S17.52,2,12,2z M12,20c-4.41,0-8-3.59-8-8s3.59-8,8-8c4.41,0,8,3.59,8,8S16.41,20,12,20z M16,11.39 c0-2.11-1.03-3.92-3-4.39V6.5c0-0.57-0.43-1-1-1s-1,0.43-1,1V7c-1.97,0.47-3,2.27-3,4.39V14H7v2h10v-2h-1V11.39z M14,14h-4v-3 c0-1.1,0.9-2,2-2s2,0.9,2,2V14z"/></g></svg>
                                الاشعارات</a>
                        </li>

                    </ul>
                </div>
                <div class="tab-content">
                    <div class="tab-pane active " id="side1">
                        <div class="list d-flex align-items-center border-bottom p-3">
                            <div class="">
                                <span class="avatar bg-primary brround avatar-md">CH</span>
                            </div>
                            <a class="wrapper w-100 ms-3" href="javascript:void(0);" >
                                <p class="mb-0 d-flex ">
                                    <b>New Websites is Created</b>
                                </p>
                                <div class="d-flex justify-content-between align-items-center">
                                    <div class="d-flex align-items-center">
                                        <i class="mdi mdi-clock text-muted me-1 tx-11"></i>
                                        <small class="text-muted ms-auto">30 mins ago</small>
                                        <p class="mb-0"></p>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>
                    <div class="tab-pane" id="side2">
                        <div class="list-group list-group-flush ">
                            <div class="list-group-item d-flex  align-items-center">
                                <div class="me-3">
                                    <span class="avatar avatar-lg brround cover-image" data-image-src="<?= base_url() ?>assets-t/img/profile.png"><span class="avatar-status bg-success"></span></span>
                                </div>
                                <div>
                                    <strong>Madeleine</strong> Hey! there I' am available....
                                    <div class="small text-muted">
                                        3 hours ago
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <!--/Sidebar-right-->





    <!-- Report  modal -->
    <div class="modal fade report" id="report">
        <div class="modal-dialog modal-xl" role="document">
            <div class="modal-content modal-content-demo">
                <div class="modal-header">
                    <h6 class="modal-title">بيانات</h6>
                    <button aria-label="Close" class="btn-close" data-bs-dismiss="modal" type="button"><span aria-hidden="true">&times;</span></button>
                </div>
                <div class="modal-body report-container">


                </div>
                <div class="modal-footer">
                    <button class="btn ripple btn-primary" type="button" onclick="javascript:reloadIframeOfReport()">تحديث</button>
                    <button class="btn ripple btn-secondary" data-bs-dismiss="modal" type="button">اغلاق</button>
                </div>
            </div>
        </div>
    </div>
    <!--End Report  modal -->


    <div id="top_modal" class="modal fade modal-fullscreen">
        <div class="modal-dialog" style="width: 900px; height: 600px;">
            <div class="modal-content" style=" height:100%;">

                <div class="modal-body" style="height:90%;">
                </div>
                <div class="modal-footer">
                    <button type="button" onclick="javascript:reloadIframeOfReport()" class="btn btn-danger"
                    ">تحديث</button>
                    <button class="btn" data-dismiss="modal" aria-hidden="true">إغلاق</button>
                </div>
            </div>
        </div>
    </div>

    <!-- mkilani -->
    <div class="modal fade" id="check_session">
        <div class="modal-dialog" style="width: 500px">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
                                class="sr-only">Close</span></button>
                    <h4 style="color: #ff0000" class="modal-title">تنبيه </h4>
                </div>
                <div class="modal-body">
            <span>
                تم انتهاء وقت الجلسة، يجب اعادة
            </span>
                    <a target="_blank" href="<?= base_url('login') ?>">تسجيل الدخول</a>
                </div>
                <div class="modal-footer">

                    <button type="button" class="btn btn-default" data-dismiss="modal">إغلاق</button>
                </div>
            </div>
        </div>
    </div>

    <div class="modal fade" id="hints-model">
        <div class="modal-dialog" style="width: 500px">
            <div class="modal-content">

                <div class="modal-body"><span id="hints-content"></span></div>
            </div>
        </div>
    </div>



    <!-- Footer opened -->
    <div class="main-footer">
        <div class="col-md-12 col-sm-12 text-center">
            <div class="container-fluid pt-0 ht-100p">
                شركة توزيع كهرباء غزة © <?=date('Y')?> <a href="javascript:void(0);" class="text-primary">النظام الموحد</a>.ادارة الحاسوب <span class="fa fa-heart text-danger"></span>
            </div>
        </div>
    </div>
    <!-- Footer closed -->
</div>
<!-- End Page -->

<!-- Back-to-top -->
<a href="#top" id="back-to-top"><i class="las la-arrow-up"></i></a>
<div class="gs-loading"><!-- loading js --></div>
<!-- JQuery min js -->
<script src="<?= base_url() ?>assets-t/plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap js -->
<script src="<?= base_url() ?>assets-t/plugins/bootstrap/js/popper.min.js"></script>
<script src="<?= base_url() ?>assets-t/plugins/bootstrap/js/bootstrap.min.js"></script>
<!-- Moment js -->
<script src="<?= base_url() ?>assets-t/js/moment.js"></script>
<!--Internal  Perfect-scrollbar js -->
<script src="<?= base_url() ?>assets-t/plugins/perfect-scrollbar/perfect-scrollbar.min.js"></script>
<!-- Eva-icons js -->
<script src="<?= base_url() ?>assets-t/js/eva-icons.min.js"></script>
<!-- right-sidebar js -->
<script src="<?= base_url() ?>assets-t/plugins/sidebar/sidebar.js"></script>
<script src="<?= base_url() ?>assets-t/plugins/sidebar/sidebar-custom.js"></script>

<!-- Sidebar js -->
<script src="<?= base_url() ?>assets-t/plugins/side-menu/sidemenu.js"></script>
<!-- Sticky js -->
<script src="<?= base_url() ?>assets-t/js/sticky.js"></script>
<!-- Internal Data tables -->
<script src="<?= base_url() ?>assets-t/plugins/datatable/js/jquery.dataTables.min.js"></script>
<script src="<?= base_url() ?>assets-t/plugins/datatable/js/dataTables.bootstrap5.js"></script>
<script src="<?= base_url() ?>assets-t/plugins/datatable/dataTables.responsive.min.js"></script>
<script src="<?= base_url() ?>assets-t/plugins/datatable/responsive.bootstrap5.min.js"></script>

<!-- INTERNAL Select2 js -->
<script src="<?= base_url() ?>assets-t/plugins/select2/js/select2.full.min.js"></script>

<!-- custom js -->
<script src="<?= base_url() ?>assets-t/js/custom.js"></script>
<script src="<?= base_url() ?>assets-t/js/bootstrap-datetimepicker.js"></script>
<script src="<?= base_url() ?>assets-t/js/jqueryval.min.js"></script>
<script src="<?= base_url() ?>assets-t/js/jquery.hotkeys.js"></script>
<script src="<?= base_url() ?>assets-t/js/export/tableExport.js"></script>
<script src="<?= base_url() ?>assets-t/js/export/jquery.base64.js"></script>
<script src="<?= base_url() ?>assets-t/js/jquery.mask.js"></script>
<script src="<?= base_url() ?>assets-t/js/functions.js"></script>
<script src="<?= base_url() ?>assets-t/js/ajax.js"></script>
<!-- Start import table xls in html ---->
<script src="<?= base_url(); ?>assets-t/js/xlsx.full.min.js"></script>
<!-- End import table xls in html---->
<!-- toastr plugin -->
<script src="<?= base_url() ?>assets-t/js/toastr/build/toastr.min.js"></script>
<script>
    var _base_url = '<?= base_url('/') ?>';
    // mkilani - check_session
    var _check_timer = setInterval(function () {
        get_dataWithOutLoading('<?=base_url("settings/sys_sessions/public_check_session")?>', {}, function (data) {
            if (data != 1) {
                $('#check_session').modal();
                clearInterval(_check_timer);
            }
        }, 'html');
    }, 600000);

    if ($.fn.datetimepicker) {
        $('input[data-type="date"]').datetimepicker({
            pickTime: false

        });
    }
</script>

<?= put_headers('js') ?>


<?php if (isset($js_file)) : ?>
    <script src="<?= base_url($js_file); ?>"></script>
<?php endif; ?>
</body>
</html>