

    <script>var hostUrl = "<?=URLROOT?>/assets/";</script>

        <script src="<?=URLROOT?>/assets/plugins/global/plugins.bundle.js"></script>
        <script src="<?=URLROOT?>/assets/js/scripts.bundle.js"></script>

         
         <?php

        $string = $_SERVER['REQUEST_URI'];
        $search = "dashboard/detail";
        $position = strpos($string, $search);

        // if ($position == false) {
        //     echo "Found at position: $position";
        // } else {
        //     echo "Not found";
        // }

        // die;
        // echo $_SERVER['REDIRECT_URL'];
        // die;
         if ($position == false) {
          ?>

          <script src="<?=URLROOT?>/assets/functions/dashboard.js"></script>
             <script src="<?=URLROOT?>/assets/js/vistor.js"></script>
                 <script src="<?=URLROOT?>/assets/plugins/custom/datatables/datatables.bundle.js"></script>
               <script src="<?=URLROOT?>/assets/js/block.js"></script>
          <?php
         }else{
            ?>
            <script src="<?=URLROOT?>/assets/functions/settime.js"></script>

            <?php
         }
        ?>
        <script src="<?=URLROOT?>/assets/functions/model.js"></script>
        <script src="<?=URLROOT?>/assets/functions/message.js"></script>
         <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.js"></script>
           <script src="https://cdn.jsdelivr.net/npm/jsqr"></script>


          

       
    </body>
    
</html>
