<aside id="layout-menu" class="layout-menu menu-vertical menu bg-menu-theme">
    <div class="app-brand demo">
        <a href="dashboard" class="app-brand-link">
            <span class="app-brand-logo demo">
                
            </span>
            
            <?php
            // Retrieve the value from the database
            $admin = Auth::user();
            $dbTitle = DB::table('tbl_admins')
                ->where('id', $admin->id)
                ->value('shopname');
            $account_type = Auth::user()->status;
            ?>
            <?php if($account_type == 1): ?>
                <span class="app-brand-text demo menu-text fw-bolder ms-2"
                    style="text-transform: uppercase; 
                    float: left;
                     width: 100%;
                    display:flex;
                    white-space: normal;
                    overflow: hidden;
                    text-overflow: ellipsis;"
                    id="dynamicTextSpan"><?php echo $dbTitle; ?></span>
            <?php else: ?>
                <span class="app-brand-text demo menu-text fw-bolder ms-2" style="text-transform: uppercase;">Super
                    Admin</span>
            <?php endif; ?>

        </a>
        <a href="javascript:void(0);" onclick="closeNav()"
            class="layout-menu-toggle menu-link text-large ms-auto d-block d-xl-none">
            <i class="bx bx-chevron-left bx-sm align-middle"></i>
        </a>
    </div>
    <div style="display: flex; justify-content: center; align-items: center; margin-right: 30px;">
        
        <span>Version 1.0.0</span>
    </div>
    <div class="menu-inner-shadow"></div>
    <?php if($account_type == 1): ?>
        <ul class="menu-inner py-1">
            <!-- Dashboard -->
            <li class="menu-item <?php echo e(Request::is('admin/dashboard') ? 'active' : ''); ?>">
                <a href="<?php echo e(url('admin/dashboard')); ?>" class="menu-link">
                    <i class="menu-icon tf-icons bx bx-home-circle"></i>
                    <div data-i18n="Analytics"><?php echo e(__('dashboard')); ?></div>
                </a>
            </li>


            <!-- PRESCRIPTION ORDER SECTION  -->
            <li class="menu-header small text-uppercase"><span class="menu-header-text"><?php echo e(__('prescripOrder')); ?></span>
            </li>
            <li class="menu-item <?php echo e(Request::is('admin/view-pending-order') ? 'active' : ''); ?>">
                <a href="<?php echo e(url('admin/view-pending-order')); ?>" class="menu-link">
                    
                    <i class="menu-icon fas fa-shopping-cart"></i>
                    <div data-i18n="Basic"><?php echo e(__('pendingOrders')); ?></div>
                </a>
            </li>
            <li class="menu-item <?php echo e(Request::is('admin/view-deliver-order') ? 'active' : ''); ?>">
                <a href="<?php echo e(url('admin/view-deliver-order')); ?>" class="menu-link">
                    
                    <i class="menu-icon fas fa-truck"></i>
                    <div data-i18n="Basic"><?php echo e(__('readyForDeliver')); ?></div>
                </a>
            </li>
            <li class="menu-item  <?php echo e(Request::is('admin/view-completed-order') ? 'active' : ''); ?>">
                <a href="<?php echo e(url('admin/view-completed-order')); ?>" class="menu-link">
                    
                    <i class="menu-icon fas fa-check"></i>
                    <div data-i18n="Basic"><?php echo e(__('completedOrders')); ?></div>
                </a>
            </li>
            <li class="menu-item  <?php echo e(Request::is('admin/view-cancalled-order') ? 'active' : ''); ?>">
                <a href="<?php echo e(url('admin/view-cancalled-order')); ?>" class="menu-link">
                    
                    <i class="menu-icon fas fa-times"></i>
                    <div data-i18n="Basic"><?php echo e(__('invalidOrders')); ?></div>
                </a>
            </li>

            <!-- MEDICINE SECTION -->
            <li class="menu-header small text-uppercase">
                <span class="menu-header-text"><?php echo e(__('medicineSection')); ?></span>
            </li>
            <li
                class="menu-item <?php echo e(Request::is('admin/add-medicine') ||
                Request::is('admin/add-medicines') ||
                Request::is('admin/view-medicines') ||
                Request::is('admin/view-medicine')
                    ? 'active open'
                    : ''); ?> ">
                <a href="javascript:void(0);" class="menu-link menu-toggle">
                    
                    <i class="menu-icon fas fa-pills"></i>
                    <div data-i18n="Account Settings"><?php echo e(__('medicine')); ?></div>
                </a>
                <ul class="menu-sub">
                    <li class="menu-item <?php echo e(Request::is('admin/add-medicine') ? 'active' : ''); ?>">
                        <a href="<?php echo e(url('admin/add-medicine')); ?>" class="menu-link">
                            <div data-i18n="Connections"><?php echo e(__('medicineImport')); ?></div>
                        </a>
                    </li>
                    <li class="menu-item <?php echo e(Request::is('admin/view-medicine') ? 'active' : ''); ?>">
                        <a href="<?php echo e(url('admin/view-medicine')); ?>" class="menu-link">
                            <div data-i18n="Connections"><?php echo e(__('medicineList')); ?></div>
                        </a>
                    </li>
                </ul>
            </li>



            <!-- CUSTOMER SECTION -->
            <li class="menu-header small text-uppercase"><span
                    class="menu-header-text"><?php echo e(__('customerSection')); ?></span></li>
            <li class="menu-item  <?php echo e(Request::is('admin/view-userslist') ? 'active' : ''); ?>">
                <a href="<?php echo e(url('admin/view-userslist')); ?>" class="menu-link">
                    
                    <i class="menu-icon fas fa-users"></i>
                    <div data-i18n="Basic"><?php echo e(__('customarList')); ?></div>
                </a>
            </li>
            <li class="menu-item <?php echo e(Request::is('admin/view-calender') ? 'active' : ''); ?>">
                <a href="<?php echo e(url('admin/view-calender')); ?>" class="menu-link">
                    
                    <i class="menu-icon fas fa-calendar-alt"></i>
                    <div data-i18n="Basic"><?php echo e(__('calender')); ?></div>
                </a>
            </li>

            <li class="menu-header small text-uppercase"><span class="menu-header-text"><?php echo e(__('accounting')); ?></span>
            </li>
            <li class="menu-item <?php echo e(Request::is('admin/admin-billing') ? 'active' : ''); ?>">
                <a href="<?php echo e(url('admin/admin-billing')); ?>" class="menu-link">

                    <i class="menu-icon fas fa-money-bill"></i>
                    

                    <div data-i18n="Basic"><?php echo e(__('billing')); ?></div>
                </a>
            </li>

            <!-- PAYMENT GATEWAY SECTION -->
            <li class="menu-header small text-uppercase"><span class="menu-header-text"><?php echo e(__('settings')); ?></span>
            </li>

            <!-- Cards -->
            <li class="menu-item <?php echo e(Request::is('admin/view-basic-settings') ? 'active' : ''); ?>">
                <a href="<?php echo e(url('admin/view-basic-settings')); ?>" class="menu-link">
                    <i class="bx bx-cog me-2"></i>
                    <div data-i18n="Basic"><?php echo e(__('basicSetup')); ?></div>
                </a>
            </li>


            <li class="menu-item <?php echo e(Request::is('admin/view-payment-list') ? 'active' : ''); ?>">
                <a href="<?php echo e(url('admin/view-payment-list')); ?>" class="menu-link">
                    <i class="menu-icon fas fa-money-bill-alt"></i>
                    <div data-i18n="Basic"><?php echo e(__('paymentGateway')); ?></div>
                </a>
            </li>
            <li class="menu-item <?php echo e(Request::is('admin/add-Country-Code') ? 'active' : ''); ?>">
                <a href="<?php echo e(url('admin/add-Country-Code')); ?>" class="menu-link">
                    <i class="menu-icon fas fa-globe"></i>

                    <div data-i18n="Basic"><?php echo e(__('countryCode')); ?></div>
                </a>
            </li>



        </ul>
    <?php else: ?>
        <li class="menu-item <?php echo e(Request::is('super-admin/view-admin-list') ? 'active' : ''); ?>">
            <a href="<?php echo e(url('super-admin/view-admin-list')); ?>" class="menu-link">
                <i class="menu-icon tf-icons bx bx-home-circle"></i>
                <div data-i18n="Analytics"><?php echo e(__('accManagement')); ?></div>
            </a>
        </li>
        <li class="menu-item <?php echo e(Request::is('super-admin/view-analytics-report') ? 'active' : ''); ?>">
            <a href="<?php echo e(url('super-admin/view-analytics-report')); ?>" class="menu-link">
                <i class="menu-icon fas fa-chart-pie"></i>
                <div data-i18n="Analytics"><?php echo e(__('analytics')); ?></div>
            </a>
        </li>
        <li class="menu-item <?php echo e(Request::is('super-admin/view-accounting-report') ? 'active' : ''); ?>">
            <a href="<?php echo e(url('super-admin/view-accounting-report')); ?>" class="menu-link">

                <i class="menu-icon fas fa-solid fa-calculator"></i>
                <div data-i18n="Analytics"><?php echo e(__('accounting')); ?></div>
            </a>
        </li>
        <li class="menu-item <?php echo e(Request::is('super-admin/view-userslist') ? 'active' : ''); ?>">
            <a href="<?php echo e(url('super-admin/view-userslist')); ?>" class="menu-link">
                <i class="menu-icon fas fa-solid fa-user"></i>
                <div data-i18n="Analytics"><?php echo e(__('app_users')); ?></div>
            </a>
        </li>
        <li class="menu-item <?php echo e(Request::is('super-admin/view-pages-settings') ? 'active' : ''); ?>">
            <a href="<?php echo e(url('super-admin/view-pages-settings')); ?>" class="menu-link">
                <i class="menu-icon fas fa-toolbox"></i>
                <div data-i18n="Basic"><?php echo e(__('Pages Setup')); ?></div>
            </a>
        </li>

        <li class="menu-item <?php echo e(Request::is('super-admin/view-basic-settings') ? 'active' : ''); ?>">
            <a href="<?php echo e(url('super-admin/view-basic-settings')); ?>" class="menu-link">
                <i class="bx bx-cog me-2"></i>
                <div data-i18n="Basic"><?php echo e(__('Basic Setup')); ?></div>
            </a>
        </li>
    <?php endif; ?>
</aside>
<?php /**PATH /home/xorgeekc/public_html/medishop/resources/views/layouts/inc/admin-sidebar.blade.php ENDPATH**/ ?>