
</div>
<!-- container-fluid -->
</div>
<!-- End Page-content -->

<footer class="footer">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-6">
                <script>document.write(new Date().getFullYear())</script> © VebuSoft.
            
            </div>
            <div class="col-sm-6" style="display: flex; justify-content: space-between; align-items: center;">
                <div class="text-sm-end d-none d-sm-block">
                    Developed by <a href="https://www.vebusoft.com" target="_blank" style="color: #000; text-decoration: none;">VebuSoft</a>
                </div>
                <div class="text-sm-end d-none d-sm-block">
                    <?php
                        $start_time = $_SERVER["REQUEST_TIME_FLOAT"] ?? microtime(true);
                        $load_time = round(microtime(true) - $start_time, 2);
                        echo "Sayfa yüklenme süresi: {$load_time} saniye";
                    ?>

                </div>  

            </div>
        </div>
    </div>
</footer>
</div>
<!-- end main content-->

</div>
<!-- END layout-wrapper -->



<!--start back-to-top-->
<button onclick="topFunction()" class="btn btn-danger btn-icon" id="back-to-top">
    <i class="ri-arrow-up-line"></i>
</button>
<!--end back-to-top-->

<!--preloader-->
<div id="preloader">
    <div id="status">
        <div class="spinner-border text-primary avatar-sm" role="status">
            <span class="visually-hidden">Loading...</span>
        </div>
    </div>
</div>


<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/libs/%40ckeditor/ckeditor5-build-classic/build/ckeditor.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/libs/quill/quill.min.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/js/pages/form-editor.init.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/js/jquery-sortable.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/libs/simplebar/simplebar.min.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/libs/node-waves/waves.min.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/libs/feather-icons/feather.min.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/js/pages/plugins/lord-icon-2.1.0.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/js/plugins.js"></script>



<script src="<?=ADMIN_THEME_URL?>/assets/libs/apexcharts/apexcharts.min.js"></script>

<script src="<?=ADMIN_THEME_URL?>/assets/libs/jsvectormap/js/jsvectormap.min.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/libs/jsvectormap/maps/world-merc.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/js/pages/dashboard-analytics.init.js"></script>

<script src="<?=ADMIN_THEME_URL?>/assets/libs/swiper/swiper-bundle.min.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/libs/prismjs/prism.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/libs/list.js/list.min.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/libs/list.pagination.js/list.pagination.min.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/libs/sweetalert2/sweetalert2.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.15.2/js/selectize.min.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/js/pages/listjs.init.js"></script>

<script src="<?=ADMIN_THEME_URL?>/assets/js/pages/form-validation.init.js"></script>

<script src="<?=ADMIN_THEME_URL?>/assets/js/app.js"></script>
<script src="<?=ADMIN_THEME_URL?>/assets/js/custom.js?v=<?=time()?>"></script>


<script>
    window.mediaPath = '<?=DOMAIN?>/media';
</script>
<script src="<?=ADMIN_FOLDER?>/editor/libs/media/media.js"></script>
<script src="<?=ADMIN_FOLDER?>/editor/libs/media/openverse.js"></script>
<script src="<?=ADMIN_FOLDER?>/editor/libs/builder/plugin-media.js"></script>
    <script>
    (function(){
      const key = 'settings_active_tab';
      const nav = document.getElementById('v-pills-tab');
      const saved = localStorage.getItem(key);
      if (saved) {
        const trigger = nav?.querySelector('a[href="'+saved+'"]');
        if (trigger && window.bootstrap) new bootstrap.Tab(trigger).show();
      }
      nav?.querySelectorAll('a[data-bs-toggle="pill"]').forEach(a=>{
        a.addEventListener('shown.bs.tab', function(){
          localStorage.setItem(key, this.getAttribute('href'));
        });
      });
    })();
    </script>
<?php if (isset($_SESSION['formSuccess'])): ?>
<script>
    document.addEventListener('DOMContentLoaded', function () {

        <?php if ($_SESSION['formSuccess']): ?>
        Toastify({
            text: '<?php echo $_SESSION['success_message']; ?>',
            duration: 3000,
            gravity: 'bottom',
            position: 'right',
            close: true,
            backgroundColor: 'linear-gradient(to right, #00b09b, #96c93d)',
        }).showToast();
        <?php else: ?>
        Toastify({
            text: '<?php echo $_SESSION['error_message']; ?>',
            duration: 3000,
            gravity: 'bottom',
            position: 'right',
            backgroundColor: 'linear-gradient(to right, #ff416c, #ff4b2b)',
        }).showToast();
        <?php endif; ?>
    });
</script>
<?php
unset($_SESSION['formSuccess']);
unset($_SESSION['succes_message']);
unset($_SESSION['error_message']);
endif; ?>
<script>
    var slide_create_title = <?php echo json_encode(sliders_item_modal_create_title); ?>;
    var slide_update_title = <?php echo json_encode(sliders_item_modal_update_title); ?>;
    var slide_modal_cancel = <?php echo json_encode(menu_button_cancel); ?>;
    var slide_modal_save = <?php echo json_encode(save); ?>;
</script>


<div class="toast-container position-fixed end-0 bottom-0 me-3 mb-3" id="top-toast">
    <div class="toast" role="alert" aria-live="assertive" aria-atomic="true">
        <div class="toast-header text-white">
            <strong class="me-auto">Page save</strong>
            <small class="badge bg-success">status</small>
            <button type="button" class="btn-close text-white px-2" data-bs-dismiss="toast" aria-label="Close"></button>
        </div>
        <div class="toast-body ">
            <div class="flex-grow-1">
                <div class="message">Elements saved!
                    <div>Template backup was saved!</div>
                    <div>Template was saved!</div>
                </div>
            </div>
        </div>
    </div>
</div>


</body>
</html>
