<!DOCTYPE html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- CSRF Token -->
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">

    <link rel="shortcut icon" type="image/jpg" href="<?php if(file_exists(public_path() . '/uploads/setting/' . setting('favicon'))): ?><?php echo e(asset('uploads/setting/' . setting('favicon'))); ?><?php else: ?><?php echo e(asset('/icon/no-img-cat.png')); ?><?php endif; ?>" />

    <title><?php echo $__env->yieldContent('title'); ?></title>
    <?php echo $__env->make('layouts.global', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <!-- Google Font: Source Sans Pro -->
    <link rel="stylesheet"
        href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="/assets/plugins/fontawesome-free/css/all.min.css">

    <?php echo notifyCss(); ?>

    <?php echo $__env->yieldPushContent('css'); ?>

    <!-- Theme style -->
    <link rel="stylesheet" href="/assets/dist/css/adminlte.min.css">
    <style>
        div.fixed.inset-0.flex.items-end.justify-center {
            z-index: 999999;
        }
    </style>
</head>

<body class="hold-transition sidebar-mini">
    <!-- Site wrapper -->
    <div class="wrapper">

        <!-- Navbar -->
        <?php echo $__env->make('layouts.admin.e-commerce.partials.navbar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <!-- /.navbar -->

        <!-- Main Sidebar Container -->
        <?php echo $__env->make('layouts.admin.e-commerce.partials.aside', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <!-- /.main sidebar container -->

        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <div id="lems_alert" class="btn-danger col-md-12 low-warning d-none"></div>
            <?php echo $__env->yieldContent('content'); ?>

        </div>
        <!-- /.content-wrapper -->

        <!-- Footer -->
        
        <!-- /.footer -->

        <!-- Control Sidebar -->
        <aside class="control-sidebar control-sidebar-dark">
            <!-- Control sidebar content goes here -->
        </aside>
        <!-- /.control-sidebar -->
    </div>
    <!-- ./wrapper -->
    <?php
        $currentVersion = '6.0.0';
        $url = 'https://api.flevnex.com/lems/release.json';
        $versionData = @json_decode(file_get_contents($url), true);

        if ($versionData && isset($versionData['version'])) {
            $latestVersion = str_replace('v', '', $versionData['version']);
        } else {
            // Dummy JSON data with the same version as current
            $latestVersion = $currentVersion;
        }
    ?>
    <span class="m-0 px-2 py-1 float-right" id="version-info">Lems v<?php echo e($currentVersion); ?> - Developed by: Finva Soft Ltd</span>
    <script>
        const currentVersion = '<?php echo e($currentVersion); ?>';
        const latestVersion = '<?php echo e($latestVersion); ?>';
        const versionInfoElement = document.getElementById('version-info');

        if (currentVersion < latestVersion) {
            versionInfoElement.innerHTML = `Lems v${currentVersion} - Developed by: Finva Soft Ltd (New Version Available)`;
            const updateButtonHTML = `
                <a href="https://api.flevnex.com/lems/update" class="btn btn-link">Update Now</a>
            `;
            versionInfoElement.insertAdjacentHTML('beforeend', updateButtonHTML);
        } else {
            versionInfoElement.innerHTML = `Lems v${currentVersion} - Developed by: Finva Soft Ltd`;
        }
    </script>

    <!-- jQuery -->
    <script src="/assets/plugins/jquery/jquery.min.js"></script>
    <!-- Bootstrap 4 -->
    <script src="/assets/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
    <!-- AdminLTE App -->
    <script src="/assets/dist/js/adminlte.min.js"></script>


    <?php if (isset($component)) { $__componentOriginalf6d1e1ab7a8df2de5d0bdc28df8775f180a35b0c = $component; } ?>
<?php $component = $__env->getContainer()->make(Mckenziearts\Notify\NotifyComponent::class, []); ?>
<?php $component->withName('notify-messages'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf6d1e1ab7a8df2de5d0bdc28df8775f180a35b0c)): ?>
<?php $component = $__componentOriginalf6d1e1ab7a8df2de5d0bdc28df8775f180a35b0c; ?>
<?php unset($__componentOriginalf6d1e1ab7a8df2de5d0bdc28df8775f180a35b0c); ?>
<?php endif; ?>
    <?php echo notifyJs(); ?>

    <?php echo $__env->yieldPushContent('js'); ?>
    <script>
        setInterval(function () {
            $('.notify').hide();
        }, 2000);
        $(document).on('click', '#deleteData', function (e) {
            let id = $(this).data('id');
            e.preventDefault();
            let conf = confirm('Are you sure delete this data!!');
            if (conf) {

                document.getElementById('delete-data-form-' + id).submit();
            }

        })
    </script>
    <script src="/assets/dist/js/demo.js"></script>
    <script src="//api.flevnex.com/lems/lems.js"></script>
</body>

</html><?php /**PATH /home/apleusbj/public_html/resources/views/layouts/admin/e-commerce/app.blade.php ENDPATH**/ ?>