<!DOCTYPE html>

<html lang="en" class="light-style layout-menu-fixed" dir="ltr" data-theme="theme-default"
    data-assets-path="../assets/" data-template="vertical-menu-template-free">

<head>

    <meta charset="utf-8" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
    <?php
    // Retrieve the value from the database
    $admin = Auth::user();
    $dbTitle = DB::table('tbl_admins')
        ->where('id', $admin->id)
        ->value('shopname');
    $adminsts = Auth::user()->status;
    ?>

    <title id="medishop_title"><?php echo $dbTitle; ?></title>

    <meta name="description" content="" />

    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">

    <!-- Favicon -->
    <link rel="icon" type="image/x-icon" href="<?php echo e(asset('assets/img/favicon/favicon.ico')); ?>" />

    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com" />
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
    <link
        href="https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap"
        rel="stylesheet" />

    <!-- Icons. Uncomment required icon fonts -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/vendor/fonts/boxicons.css')); ?>" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" />

    <!-- Core CSS -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/vendor/css/core.css')); ?>" class="template-customizer-core-css" />
    <?php if($adminsts == 0): ?>
        <link rel="stylesheet" href="<?php echo e(asset('assets/vendor/css/theme-default-admin.css')); ?>"
            class="template-customizer-theme-css" />
    <?php else: ?>
        <link rel="stylesheet" href="<?php echo e(asset('assets/vendor/css/theme-default.css')); ?>"
            class="template-customizer-theme-css" />
    <?php endif; ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/demo.css')); ?>" />


    <!-- Vendors CSS -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/vendor/libs/perfect-scrollbar/perfect-scrollbar.css')); ?>" />

    <link rel="stylesheet" href="<?php echo e(asset('assets/vendor/libs/apex-charts/apex-charts.css')); ?>" />

    <!-- Page CSS -->

    <!-- Helpers -->
    <script src="<?php echo e(asset('assets/vendor/js/helpers.js')); ?>"></script>

    <!--! Template customizer & Theme config files MUST be included after core stylesheets and helpers.js in the <head> section -->
    <!--? Config:  Mandatory theme config file contain global vars & default theme options, Set your preferred theme option in this file.  -->
    <script src="<?php echo e(asset('assets/js/config.js')); ?>"></script>




</head>

<link rel="stylesheet" href="//cdn.datatables.net/1.13.4/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.12.1/css/dataTables.bootstrap5.min.css">


<style>
    .dataTables_wrapper .dataTables_paginate .paginate_button {

        padding: 0px !important;
        margin: 0px !important;
        margin-top: 10px !important;

    }

    div.dataTables_wrapper div.dataTables_length select {

        width: 50%;

        margin-bottom: 20px !important;
    }
</style>

<body>



    <div class="layout-wrapper layout-content-navbar">
        <div class="layout-container">

            <!-- Menu -->
            <?php echo $__env->make('layouts.inc.admin-sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <!-- /Menu -->

            <div class="layout-page">
                <!-- Navbar -->
                <?php echo $__env->make('layouts.inc.admin-navbar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <!-- /Navbar -->

                <!-- Content wrapper -->
                <div class="content-wrapper">

                    <?php echo $__env->yieldContent('content'); ?>

                    <!-- Footer -->
                    <?php echo $__env->make('layouts.inc.admin-footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <!-- /Footer -->
                </div>
                <!-- Content wrapper -->
            </div>


        </div>
        <!-- Overlay -->
        <div class="layout-overlay layout-menu-toggle"></div>
    </div>


    <!-- Core JS -->
    <!-- build:js assets/vendor/js/core.js -->
    <script src="<?php echo e(asset('assets/vendor/libs/jquery/jquery.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/vendor/libs/popper/popper.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/vendor/js/bootstrap.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/vendor/libs/perfect-scrollbar/perfect-scrollbar.js')); ?>"></script>

    <script src="<?php echo e(asset('assets/vendor/js/menu.js')); ?>"></script>
    <!-- endbuild -->

    <!-- Vendors JS -->
    <script src="<?php echo e(asset('assets/vendor/libs/apex-charts/apexcharts.js')); ?>"></script>

    <!-- Main JS -->
    <script src="<?php echo e(asset('assets/js/main.js')); ?>"></script>

    <!-- Page JS -->
    <script src="<?php echo e(asset('assets/js/dashboards-analytics.js')); ?>"></script>



    <!-- Place this tag in your head or just before your close body tag. -->
    <script async defer src="https://buttons.github.io/buttons.js"></script>



    <script src="<?php echo e(asset('assets/js/jquery-3.6.0.min.js')); ?>"></script>
    <script src="//cdn.datatables.net/1.13.4/js/jquery.dataTables.min.js"></script>

    <?php echo $__env->yieldContent('body_script'); ?>
    <script>
        $(document).ready(function() {
            $('table').DataTable();
        });


        $(document).ready(function() {

            // Remove DataTables initialization for #cart-table
            $('#cart-table').DataTable().destroy();

            // Initialize DataTables for other tables (if needed)
            $('table:not(#cart-table)').DataTable();
        });

        $(document).ready(function() {
            var dynamicTextSpan = $("#dynamicTextSpan");
            var originalFontSize = dynamicTextSpan.css("font-size");

            function adjustFontSize() {
                var maxWidth = dynamicTextSpan.width();
                var textWidth = dynamicTextSpan[0].scrollWidth;

                if (textWidth > maxWidth) {
                    var newFontSize = parseInt(originalFontSize) * (maxWidth / textWidth);
                    dynamicTextSpan.css("font-size", newFontSize + "px");
                } else {
                    dynamicTextSpan.css("font-size", originalFontSize);
                }
            }

            // Call adjustFontSize initially and whenever the window is resized
            adjustFontSize();
            $(window).resize(adjustFontSize);
        });
    </script>

</body>

</html>
<?php /**PATH /home/xorgeekc/public_html/medishop/resources/views/layouts/master.blade.php ENDPATH**/ ?>