<?php
    $isMembershipPlanActive     = ['admin.membership.plan.*'];
    $isMemberActive             = ['admin.user.*'];
    $isSettingActive            = ['admin.system.*'];
    $isCurrencyActive           = ['admin.system.currency.*'];
    $isSupportTicketActive      = ['admin.support.ticket.*'];
    $isFrontendCustomizeActive  = ['admin.frontend.sections.*'];
    $isCreditLogsActive         = ['admin.report.credit.*'];
    $isReportsActive            = ['admin.report.record.*',
                                  'admin.report.payment.detail',
                                  'admin.report.withdraw.detail',];
    $isPaymentActive            = ['admin.payment.*'];
    $isDisapatchGatewayActive   = ['admin.gateway.*'];
    $isTemplateActive           = ['admin.template.*'];
    $isContactActive            = ['admin.contact.*'];

    $isSmsActive                = ['admin.communication.sms.*'];
    $isSmsCampaignActive        = ['admin.communication.sms.campaign.*'];
    $isWhatsappActive           = ['admin.communication.whatsapp.*'];
    $isWhatsappCampaignActive   = ['admin.communication.whatsapp.campaign.*'];
    $isEmailActive              = ['admin.communication.email.*'];
    $isEmailCampaignActive      = ['admin.communication.email.campaign.*'];
?>

<aside class="sidebar">
    <div class="sidebar-wrapper">
        <div class="sidebar-logo">
            <a href="<?php echo e(route('admin.dashboard')); ?>" class="logo">
                <img src="<?php echo e(showImage(config('setting.file_path.panel_logo.path').'/'.site_settings('panel_logo'),config('setting.file_path.panel_logo.size'))); ?>" class="logo-lg" alt="">
                <img src="<?php echo e(showImage(config('setting.file_path.panel_square_logo.path').'/'.site_settings('panel_square_logo'),config('setting.file_path.panel_square_logo.size'))); ?>" class="logo-sm" alt="">
            </a>
            <button class="icon-btn btn-sm dark-soft hover circle d-lg-none" id="sideBar-closer">
                <i class="ri-arrow-left-line"></i>
            </button>
        </div>
        <div class="menu-wrapper">
            <ul class="menus scrollable-menu">

                <li class="menu">
                    <a class="menu-link <?php echo e(request()->routeIs('admin.dashboard') ? 'active' :''); ?>" href="<?php echo e(route("admin.dashboard")); ?>">
                        <span class="menu-symbol">
                            <i class="ri-layout-grid-line"></i>
                        </span>
                        <span class="menu-label"><?php echo e(translate("dashboard")); ?></span>
                    </a>
                </li>

                <li class="menu">
                    <a class="menu-link <?php echo e(menuActive($isMemberActive)); ?>" href="javascript:void(0)">
                        <span class="menu-symbol">
                            <i class="ri-account-box-line"></i>
                        </span>
                        <span class="menu-label"><?php echo e(translate("Members")); ?></span>
                        <span class="menu-arrow">
                            <i class="ri-arrow-right-s-line"></i>
                        </span>
                    </a>
                    <div class="sub-menu-wrapper <?php echo e(menuShow(array_merge($isMemberActive, $isMembershipPlanActive))); ?>" <?php echo e(menuShow(array_merge($isMemberActive, $isMembershipPlanActive)) == 'show' ? "style='opacity:1;visibility:visible;'" : ''); ?>>
                        <div class="sub-menu-container">
                            <div class="d-flex align-items-center gap-4 mb-3 px-2 sub-menu-header">
                                <span class="back-to-menu" role="button">
                                    <i class="ri-arrow-left-line"></i>
                                </span>
                                <h6><?php echo e(translate("Member Management")); ?></h6>
                            </div>

                            <div class="sidebar-menu-container">
                                <ul class="sidebar-menu">
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(menuShow($isMemberActive) != 'show' ? 'collapsed' : ''); ?>" data-bs-toggle="collapse" href="#member" role="button" aria-expanded="false" aria-controls="memberList">
                                            <span>
                                                <i class="ri-team-line"></i>
                                            </span>
                                            <p> <?php echo e(translate("Member List")); ?> <small> <i class="ri-arrow-down-s-line"></i> </small>
                                            </p>
                                        </a>
                                        <div class="side-menu-dropdown collapse <?php echo e(menuShow($isMemberActive)); ?>" id="member">
                                            <ul class="sub-menu">
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.user.index') || request()->routeis('admin.user.trashed') ? 'active' : ''); ?>" href="<?php echo e(route('admin.user.index')); ?>">
                                                        <p><?php echo e(translate("All Members")); ?></p>
                                                    </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.user.active') ? 'active' : ''); ?>" href="<?php echo e(route('admin.user.active')); ?>">
                                                        <p><?php echo e(translate("Active Members")); ?></p>
                                                    </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.user.banned') ? 'active' : ''); ?>" href="<?php echo e(route('admin.user.banned')); ?>">
                                                        <p><?php echo e(translate("Banned Members")); ?></p>
                                                    </a>
                                                </li>
                                            </ul>
                                        </div>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(menuShow($isMembershipPlanActive) != 'show' ? 'collapsed' : ''); ?>" data-bs-toggle="collapse" href="#membershipPlan" role="button" aria-expanded="false" aria-controls="membershipPlan">
                                            <span>
                                                <i class="ri-building-3-line"></i>
                                            </span>
                                            <p> <?php echo e(translate("Membership Plans")); ?> <small> <i class="ri-arrow-down-s-line"></i> </small>
                                            </p>
                                        </a>
                                        <div class="side-menu-dropdown collapse <?php echo e(menuShow($isMembershipPlanActive)); ?>" id="membershipPlan">
                                            <ul class="sub-menu">
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.membership.plan.create') ? 'active' : ''); ?>" href="<?php echo e(route('admin.membership.plan.create')); ?>">
                                                        <p><?php echo e(translate("Create Plan")); ?></p>
                                                    </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.membership.plan.index') ? 'active' : ''); ?>" href="<?php echo e(route('admin.membership.plan.index')); ?>">
                                                        <p><?php echo e(translate("Plan List")); ?></p>
                                                    </a>
                                                </li>
                                            </ul>
                                        </div>
                                    </li>
                                    <li class="sidebar-menu-note">
                                        <p class="menu-note">
                                            <?php echo e(translate("Access Member specific")); ?>

                                            <br>
                                            <a href="<?php echo e(route("admin.system.setting", ["type" => "member"])); ?>"><?php echo e(translate("Settings")); ?></a>
                                        </p>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </li>

                <li class="menu">
                    <a class="menu-link <?php echo e(menuActive(array_merge($isSmsActive, $isSmsCampaignActive, $isWhatsappCampaignActive, $isEmailActive, $isWhatsappActive))); ?>" href="javascript:void(0)">
                        <span class="menu-symbol">
                            <i class="ri-mail-send-line"></i>
                        </span>
                        <span class="menu-label"><?php echo e(translate("Messages")); ?></span>
                        <span class="menu-arrow">
                            <i class="ri-arrow-right-s-line"></i>
                        </span>
                    </a>
                    <div class="sub-menu-wrapper <?php echo e(menuShow(array_merge($isSmsActive, $isSmsCampaignActive, $isWhatsappCampaignActive, $isEmailActive, $isWhatsappActive))); ?>" <?php echo e(menuShow(array_merge($isSmsActive, $isWhatsappCampaignActive, $isSmsCampaignActive, $isEmailActive, $isWhatsappActive)) == 'show' ? "style='opacity:1;visibility:visible;'" : ''); ?>>
                        <div class="sub-menu-container">
                            <div class="d-flex align-items-center gap-4 mb-3 px-2 sub-menu-header">
                                <span class="back-to-menu" role="button">
                                    <i class="ri-arrow-left-line"></i>
                                </span>
                                <h6><?php echo e(translate("Communication")); ?></h6>
                            </div>

                            <div class="sidebar-menu-container">
                                <ul class="sidebar-menu">
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(menuActive($isEmailActive) == 'active' ? 'collapsed' : ''); ?>" data-bs-toggle="collapse" href="#communicationEmail" role="button" aria-expanded="false" aria-controls="communicationEmail">
                                        <span>
                                            <i class="ri-mail-line"></i>
                                        </span>
                                        <p> <?php echo e(translate("Email")); ?> <small>
                                            <i class="ri-arrow-down-s-line"></i>
                                            </small>
                                        </p>
                                        </a>
                                        <div class="side-menu-dropdown collapse <?php echo e(menuShow(array_merge(['admin.communication.email.create', 'admin.communication.email.index'], $isEmailCampaignActive))); ?>" id="communicationEmail">
                                        <ul class="sub-menu">
                                            <li class="sub-menu-item">
                                            <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.communication.email.create')  ? 'active' :''); ?>" href="<?php echo e(route('admin.communication.email.create')); ?>">
                                                <p><?php echo e(translate("Send Email")); ?></p>
                                            </a>
                                            </li>
                                            <li class="sub-menu-item">
                                            <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.communication.email.index') ? "active" : ""); ?>" href="<?php echo e(route('admin.communication.email.index')); ?>">
                                                <p><?php echo e(translate("History")); ?></p>
                                            </a>
                                            </li>
                                            <li class="sub-menu-item">
                                                <a class="sidebar-menu-link <?php echo e(menuActive($isEmailCampaignActive) == 'active' ? 'collapsed' : ''); ?>" data-bs-toggle="collapse" href="#whatsappCampaign" role="button" aria-expanded="false" aria-controls="whatsappCampaign">

                                                <p> <?php echo e(translate("Campaign")); ?>

                                                    <small>
                                                    <i class="ri-arrow-down-s-line"></i>
                                                    </small>
                                                </p>
                                                </a>
                                                <div class="side-menu-dropdown collapse <?php echo e(menuShow($isEmailCampaignActive)); ?>" id="whatsappCampaign" style="">
                                                <ul class="sub-menu">
                                                    <li class="sub-menu-item">
                                                        <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.communication.email.campaign.create') ? 'active' : ''); ?>" href="<?php echo e(route('admin.communication.email.campaign.create')); ?>">
                                                        <p><?php echo e(translate("Create")); ?></p>
                                                        </a>
                                                    </li>
                                                    <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.communication.email.campaign.index') ? 'active' : ''); ?>" href="<?php echo e(route('admin.communication.email.campaign.index')); ?>">
                                                        <p><?php echo e(translate("List")); ?></p>
                                                    </a>
                                                    </li>
                                                </ul>
                                                </div>
                                            </li>
                                        </ul>
                                        </div>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(menuActive(array_merge($isSmsActive, $isSmsCampaignActive)) == 'active' ? 'collapsed' : ''); ?>" data-bs-toggle="collapse" href="#smsCommunication" role="button" aria-expanded="false" aria-controls="smsCommunication">
                                            <span>
                                                <i class="ri-message-2-line"></i>
                                            </span>
                                            <p> <?php echo e(translate("SMS")); ?> <small> <i class="ri-arrow-down-s-line"></i> </small>
                                            </p>
                                        </a>
                                        <div class="side-menu-dropdown collapse <?php echo e(menuShow(array_merge(['admin.communication.sms.create', 'admin.communication.sms.index'], $isSmsCampaignActive))); ?>" id="smsCommunication">
                                            <ul class="sub-menu">
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.communication.sms.create') ? 'active' :''); ?>" href="<?php echo e(route('admin.communication.sms.create')); ?>">
                                                        <p><?php echo e(translate("Send SMS")); ?></p>
                                                    </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.communication.sms.index') ? 'active' : ''); ?>" href="<?php echo e(route('admin.communication.sms.index')); ?>">
                                                        <p><?php echo e(translate("History")); ?></p>
                                                    </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(menuActive($isSmsCampaignActive) == 'active' ? 'collapsed' : ''); ?>" data-bs-toggle="collapse" href="#smsCampaign" role="button" aria-expanded="false" aria-controls="smsCampaign">

                                                      <p> <?php echo e(translate("Campaign")); ?>

                                                        <small>
                                                          <i class="ri-arrow-down-s-line"></i>
                                                        </small>
                                                      </p>
                                                    </a>
                                                    <div class="side-menu-dropdown collapse <?php echo e(menuShow($isSmsCampaignActive)); ?>" id="smsCampaign" style="">
                                                      <ul class="sub-menu">
                                                        <li class="sub-menu-item">
                                                            <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.communication.sms.campaign.create') ? 'active' : ''); ?>" href="<?php echo e(route('admin.communication.sms.campaign.create')); ?>">
                                                              <p><?php echo e(translate("Create")); ?></p>
                                                            </a>
                                                          </li>
                                                        <li class="sub-menu-item">
                                                          <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.communication.sms.campaign.index') ? 'active' : ''); ?>" href="<?php echo e(route('admin.communication.sms.campaign.index')); ?>">
                                                            <p><?php echo e(translate("List")); ?></p>
                                                          </a>
                                                        </li>
                                                      </ul>
                                                    </div>
                                                </li>
                                            </ul>
                                        </div>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(menuActive($isWhatsappActive) == 'active' ? 'collapsed' : ''); ?>" data-bs-toggle="collapse" href="#whatsappCommunication" role="button" aria-expanded="false" aria-controls="whatsappCommunication">
                                        <span>
                                            <i class="ri-whatsapp-line"></i>
                                        </span>
                                        <p> <?php echo e(translate("Whatsapp")); ?> <small>
                                            <i class="ri-arrow-down-s-line"></i>
                                            </small>
                                        </p>
                                        </a>
                                        <div class="side-menu-dropdown collapse <?php echo e(menuShow(array_merge(['admin.communication.whatsapp.chats.index', 'admin.communication.whatsapp.create', 'admin.communication.whatsapp.index'], $isWhatsappCampaignActive))); ?>" id="whatsappCommunication">
                                            <ul class="sub-menu">
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.communication.whatsapp.chats.index') ? 'active' :''); ?>" href="<?php echo e(route('admin.communication.whatsapp.chats.index')); ?>">
                                                        <p><?php echo e(translate("Chats")); ?></p>
                                                    </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.communication.whatsapp.create') ? 'active' :''); ?>" href="<?php echo e(route('admin.communication.whatsapp.create')); ?>">
                                                        <p><?php echo e(translate("Send Message")); ?></p>
                                                    </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.communication.whatsapp.index') ? 'active' :''); ?>" href="<?php echo e(route('admin.communication.whatsapp.index')); ?>">
                                                        <p><?php echo e(translate("History")); ?></p>
                                                    </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(menuActive($isWhatsappCampaignActive) == 'active' ? 'collapsed' : ''); ?>" data-bs-toggle="collapse" href="#whatsappCampaign" role="button" aria-expanded="false" aria-controls="whatsappCampaign">

                                                    <p> <?php echo e(translate("Campaign")); ?>

                                                        <small>
                                                        <i class="ri-arrow-down-s-line"></i>
                                                        </small>
                                                    </p>
                                                    </a>
                                                    <div class="side-menu-dropdown collapse <?php echo e(menuShow($isWhatsappCampaignActive)); ?>" id="whatsappCampaign" style="">
                                                    <ul class="sub-menu">
                                                        <li class="sub-menu-item">
                                                            <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.communication.whatsapp.campaign.create') ? 'active' : ''); ?>" href="<?php echo e(route('admin.communication.whatsapp.campaign.create')); ?>">
                                                            <p><?php echo e(translate("Create")); ?></p>
                                                            </a>
                                                        </li>
                                                        <li class="sub-menu-item">
                                                        <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.communication.whatsapp.campaign.index') ? 'active' : ''); ?>" href="<?php echo e(route('admin.communication.whatsapp.campaign.index')); ?>">
                                                            <p><?php echo e(translate("List")); ?></p>
                                                        </a>
                                                        </li>
                                                    </ul>
                                                    </div>
                                                </li>
                                            </ul>
                                        </div>
                                    </li>
                                    
                                </ul>
                            </div>
                        </div>
                    </div>
                </li>

                <li class="menu">
                    <a class="menu-link <?php echo e(menuActive(array_merge($isPaymentActive, $isDisapatchGatewayActive))); ?>" href="javascript:void(0)">
                        <span class="menu-symbol">
                            <i class="ri-instance-line"></i>
                        </span>
                        <span class="menu-label"><?php echo e(translate("Gateway")); ?></span>
                        <span class="menu-arrow">
                            <i class="ri-arrow-right-s-line"></i>
                        </span>
                    </a>
                    <div class="sub-menu-wrapper <?php echo e(menuShow(array_merge($isPaymentActive, $isDisapatchGatewayActive))); ?>" <?php echo e(menuShow(array_merge($isPaymentActive, $isDisapatchGatewayActive)) == 'show' ? "style='opacity:1;visibility:visible;'" : ''); ?>>
                        <div class="sub-menu-container">
                            <div class="d-flex align-items-center gap-4 mb-3 px-2 sub-menu-header">
                                <span class="back-to-menu" role="button">
                                    <i class="ri-arrow-left-line"></i>
                                </span>
                                <h6><?php echo e(translate("Gateway Options")); ?></h6>
                            </div>

                            <div class="sidebar-menu-container">
                                <ul class="sidebar-menu">
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(menuShow($isPaymentActive) != 'show' ? 'collapsed' : ''); ?>" data-bs-toggle="collapse" href="#automaticPayment" role="button" aria-expanded="false" aria-controls="automaticPayment">
                                            <span>
                                                <i class="ri-bank-card-line"></i>
                                            </span>
                                            <p> <?php echo e(translate("Payment Gateway")); ?> <small>
                                                <i class="ri-arrow-down-s-line"></i>
                                                </small>
                                            </p>
                                        </a>
                                        <div class="side-menu-dropdown collapse <?php echo e(menuShow($isPaymentActive)); ?>" id="automaticPayment">
                                            <ul class="sub-menu">
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.payment.withdraw.index') ? 'active' : ''); ?>" href="<?php echo e(route('admin.payment.withdraw.index')); ?>" >
                                                        <p><?php echo e(translate("Withdraw Methods")); ?></p>
                                                    </a>
                                                </li>
                                            </ul>
                                        </div>
                                        <div class="side-menu-dropdown collapse <?php echo e(menuShow($isPaymentActive)); ?>" id="automaticPayment">
                                            <ul class="sub-menu">
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.payment.automatic.index') ? 'active' : ''); ?>" href="<?php echo e(route('admin.payment.automatic.index')); ?>" >
                                                        <p><?php echo e(translate("Automatic Payment")); ?></p>
                                                    </a>
                                                </li>
                                            </ul>
                                        </div>
                                        <div class="side-menu-dropdown collapse <?php echo e(menuShow($isPaymentActive)); ?>" id="automaticPayment">
                                            <ul class="sub-menu">
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.payment.manual.index') ? 'active' : ''); ?>" href="<?php echo e(route('admin.payment.manual.index')); ?>" >
                                                        <p><?php echo e(translate("Manual Payment")); ?></p>
                                                    </a>
                                                </li>
                                            </ul>
                                        </div>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(menuActive($isDisapatchGatewayActive)); ?>" href="<?php echo e(route("admin.gateway.email.index")); ?>">
                                            <span>
                                                <i class="ri-tools-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Messaging Gateways")); ?></p>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </li>

                <li class="menu">
                    <a class="menu-link <?php echo e(menuActive($isContactActive)); ?>" href="javascript:void(0)">
                        <span class="menu-symbol">
                            <i class="ri-contacts-book-3-line"></i>
                        </span>
                        <span class="menu-label"><?php echo e(translate("Contacts")); ?></span>
                        <span class="menu-arrow">
                            <i class="ri-arrow-right-s-line"></i>
                        </span>
                    </a>
                    <div class="sub-menu-wrapper <?php echo e(menuShow($isContactActive)); ?>" <?php echo e(menuShow($isContactActive) == 'show' ? "style='opacity:1;visibility:visible;'" : ''); ?>>
                        <div class="sub-menu-container">
                            <div class="d-flex align-items-center gap-4 mb-3 px-2 sub-menu-header">
                                <span class="back-to-menu" role="button">
                                    <i class="ri-arrow-left-line"></i>
                                </span>
                                <h6><?php echo e(translate("All Contacts")); ?></h6>
                            </div>

                            <div class="sidebar-menu-container">
                                <ul class="sidebar-menu">
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link  <?php echo e(request()->routeis('admin.contact.settings.index') ? 'active' : ''); ?>" href="<?php echo e(route('admin.contact.settings.index')); ?>" aria-expanded="false">
                                        <span>
                                            <i class="ri-user-settings-line"></i>
                                        </span>
                                        <p><?php echo e(translate("Attributes")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.contact.group.index') ? 'active' : ''); ?>" href="<?php echo e(route('admin.contact.group.index')); ?>" aria-expanded="false">
                                            <span>
                                                <i class="ri-group-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Groups")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.contact.index') ? 'active' : ''); ?>" href="<?php echo e(route('admin.contact.index')); ?>" aria-expanded="false">
                                            <span>
                                                <i class="ri-list-indefinite"></i>
                                            </span>
                                            <p><?php echo e(translate("List")); ?></p>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </li>

                <li class="menu">
                    <a class="menu-link <?php echo e(menuActive($isTemplateActive)); ?>" href="javascript:void(0)">
                        <span class="menu-symbol">
                            <i class="ri-stack-line"></i>
                        </span>
                        <span class="menu-label"><?php echo e(translate("Templates")); ?> <?php if($sms_template_request > 0 || $email_template_request > 0): ?> <span class="text-danger fs-16">*</span> <?php endif; ?></span>
                        <span class="menu-arrow">
                            <i class="ri-arrow-right-s-line"></i>
                        </span>
                    </a>
                    <div class="sub-menu-wrapper <?php echo e(menuShow($isTemplateActive)); ?>" <?php echo e(menuShow($isTemplateActive) == 'show' ? "style='opacity:1;visibility:visible;'" : ''); ?>>
                        <div class="sub-menu-container">
                            <div class="d-flex align-items-center gap-4 mb-3 px-2 sub-menu-header">
                                <span class="back-to-menu" role="button">
                                    <i class="ri-arrow-left-line"></i>
                                </span>
                                <h6><?php echo e(translate("All Templates")); ?></h6>
                                
                            </div>

                            <div class="sidebar-menu-container">
                                <ul class="sidebar-menu">
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.template.*') && request()->channel == \App\Enums\System\ChannelTypeEnum::EMAIL->value ? 'active' : ''); ?>" 
                                            href="<?php echo e(route('admin.template.index', ['channel' => \App\Enums\System\ChannelTypeEnum::EMAIL->value])); ?>">
                                            <span>
                                                <i class="ri-mail-send-fill"></i>
                                            </span>
                                            <p>
                                                <?php echo e(translate("Email")); ?>

                                                <?php if($email_template_request > 0): ?>
                                                    <span class="fs-12 i-badge pill danger-soft">
                                                        <?php echo e($email_template_request); ?>

                                                    </span>
                                                <?php endif; ?>
                                            </p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.template.*') && request()->channel == \App\Enums\System\ChannelTypeEnum::SMS->value ? 'active' : ''); ?>" 
                                            href="<?php echo e(route('admin.template.index', ['channel' => \App\Enums\System\ChannelTypeEnum::SMS->value])); ?>">
                                            <span>
                                                <i class="ri-discuss-line"></i>
                                            </span>
                                            <p>
                                                <?php echo e(translate("SMS")); ?>

                                                <?php if($sms_template_request > 0): ?>
                                                    <span class="fs-12 i-badge pill danger-soft">
                                                        <?php echo e($sms_template_request); ?>

                                                    </span>
                                                <?php endif; ?>
                                            </p>
                                        </a>
                                    </li>

                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.template.*') && request()->channel == \App\Enums\System\ChannelTypeEnum::WHATSAPP->value ? 'active' : ''); ?>" 
                                            href="<?php echo e(route('admin.template.index', ['channel' => \App\Enums\System\ChannelTypeEnum::WHATSAPP->value])); ?>">
                                            <span>
                                                <i class="ri-whatsapp-line"></i>
                                            </span>
                                            <p><?php echo e(translate("WhatsApp")); ?></p>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </li>

                <li class="menu">
                    <a class="menu-link <?php echo e(menuActive(array_merge($isCreditLogsActive, $isReportsActive))); ?>" href="javascript:void(0)">
                        <span class="menu-symbol">
                            <i class="ri-bar-chart-2-line"></i>
                        </span>
                        <span class="menu-label"><?php echo e(translate("Report")); ?> <?php if($pending_manual_payment_count > 0 || $pending_withdraw_payment_count > 0 ): ?> <span class="text-danger fs-16">*</span> <?php endif; ?></span>
                        <span class="menu-arrow">
                            <i class="ri-arrow-right-s-line"></i>
                        </span>
                    </a>
                    <div class="sub-menu-wrapper <?php echo e(menuShow(array_merge($isCreditLogsActive, $isReportsActive))); ?>" <?php echo e(menuShow(array_merge($isCreditLogsActive, $isReportsActive)) == 'show' ? "style='opacity:1;visibility:visible;'" : ''); ?>>
                        <div class="sub-menu-container">
                            <div class="d-flex align-items-center gap-4 mb-3 px-2 sub-menu-header">
                                <span class="back-to-menu" role="button">
                                    <i class="ri-arrow-left-line"></i>
                                </span>
                                <h6><?php echo e(translate("Report Logs")); ?></h6>
                            </div>

                            <div class="sidebar-menu-container">
                                <ul class="sidebar-menu">
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(menuShow($isReportsActive) != 'show' ? 'collapsed' : ''); ?>" data-bs-toggle="collapse" href="#activityRecords" role="button" aria-expanded="false" aria-controls="activityRecords">
                                            <span>
                                                <i class="ri-file-chart-line"></i>
                                            </span>
                                            <p> <?php echo e(translate("Activity Records")); ?> 
                                                <?php if($pending_manual_payment_count > 0 || $pending_withdraw_payment_count > 0): ?>
                                                    <span class="text-danger">
                                                        <i class="ri-error-warning-line"></i>
                                                    </span>
                                                <?php endif; ?>
                                                <small>
                                                    <i class="ri-arrow-down-s-line"></i>
                                                </small>
                                            </p>
                                        </a>
                                        <div class="side-menu-dropdown collapse <?php echo e(menuShow($isReportsActive)); ?>" id="activityRecords">
                                            <ul class="sub-menu">
                                                <li class="sub-menu-item">
                                                <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.report.record.transaction') ? 'active' : ''); ?>" href="<?php echo e(route('admin.report.record.transaction')); ?>">
                                                    <p><?php echo e(translate("Transaction History")); ?></p>
                                                </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.report.record.subscription') ? 'active' : ''); ?>" href="<?php echo e(route('admin.report.record.subscription')); ?>">
                                                    <p><?php echo e(translate("Subscription History")); ?></p>
                                                </a>
                                                </li>
                                               
                                                <li class="sub-menu-item">
                                                <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.report.record.payment') || request()->routeis('admin.report.payment.detail')  ? 'active' : ''); ?>" href="<?php echo e(route('admin.report.record.payment')); ?>">
                                                    <p><?php echo e(translate("Payment History")); ?></p>
                                                    <?php if($pending_manual_payment_count > 0): ?>
                                                        <span class="fs-12 i-badge pill danger-soft">
                                                           <?php echo e($pending_manual_payment_count); ?>

                                                        </span>
                                                    <?php endif; ?>
                                                </a>
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.report.record.affiliate') ? 'active' : ''); ?>" href="<?php echo e(route('admin.report.record.affiliate')); ?>">
                                                        <p><?php echo e(translate("Affiliate History")); ?></p>
                                                    </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.report.record.withdraw') || request()->routeis('admin.report.withdraw.detail') ? 'active' : ''); ?>" href="<?php echo e(route('admin.report.record.withdraw')); ?>">
                                                    <p><?php echo e(translate("Withdraw History")); ?></p>
                                                    <?php if($pending_withdraw_payment_count > 0): ?>
                                                        <span class="fs-12 i-badge pill danger-soft">
                                                           <?php echo e($pending_withdraw_payment_count); ?>

                                                        </span>
                                                    <?php endif; ?>
                                                </a>
                                                </li>
                                            </ul>
                                        </div>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link collapsed <?php echo e(menuShow($isCreditLogsActive)); ?>" data-bs-toggle="collapse" href="#creditLogs" role="button" aria-expanded="false" aria-controls="creditLogs">
                                            <span>
                                                <i class="ri-hand-coin-line"></i>
                                            </span>
                                            <p> <?php echo e(translate("Credit Logs")); ?> <small>
                                                <i class="ri-arrow-down-s-line"></i>
                                                </small>
                                            </p>
                                        </a>
                                        <div class="side-menu-dropdown collapse <?php echo e(menuShow($isCreditLogsActive)); ?>" id="creditLogs">
                                            <ul class="sub-menu">
                                                <li class="sub-menu-item">
                                                <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.report.credit.sms') ? 'active' : ''); ?>" href="<?php echo e(route('admin.report.credit.sms')); ?>">
                                                    <p><?php echo e(translate("SMS")); ?></p>
                                                </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.report.credit.email') ? 'active' : ''); ?>" href="<?php echo e(route('admin.report.credit.email')); ?>">
                                                    <p><?php echo e(translate("Email")); ?></p>
                                                </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                <a class="sidebar-menu-link <?php echo e(request()->routeis('admin.report.credit.whatsapp') ? 'active' : ''); ?>" href="<?php echo e(route('admin.report.credit.whatsapp')); ?>">
                                                    <p><?php echo e(translate("WhatsApp")); ?></p>
                                                </a>
                                                </li>
                                            </ul>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </li>

                <li class="menu">
                    <a class="menu-link <?php echo e(menuActive($isFrontendCustomizeActive)); ?>" href="javascript:void(0)">
                        <span class="menu-symbol">
                            <i class="ri-layout-4-line"></i>
                        </span>
                        <span class="menu-label"><?php echo e(translate('Frontend Sections')); ?></span>
                        <span class="menu-arrow">
                            <i class="ri-arrow-right-s-line"></i>
                        </span>
                    </a>
                    <div class="sub-menu-wrapper <?php echo e(menuShow($isFrontendCustomizeActive)); ?>" <?php echo e(menuShow($isFrontendCustomizeActive) == 'show' ? "style='opacity:1;visibility:visible;'" : ''); ?>>
                        <div class="sub-menu-container">
                            <div class="d-flex align-items-center gap-4 mb-3 px-2 sub-menu-header">
                            <span class="back-to-menu" role="button">
                                <i class="ri-arrow-left-line"></i>
                            </span>
                            <h6><?php echo e(translate('Section List')); ?></h6>
                            </div>

                            <div class="sidebar-menu-container">
                                <ul class="sidebar-menu">
                                    <?php
                                        $lastElement = collect(request()->segments())->last();
                                    ?>
                                    <?php $__currentLoopData = getFrontendSection(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $section): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php if($key == 'service-highlight' || $key == 'service-overview' || $key == 'service-feature' || $key == 'service-sections' || $key == 'service-menu' || $key == 'service-breadcrumb' || $key == 'service-details'): ?>
                                            <?php
                                                $isSectionActive = request()->route()->parameter('section_key') === $key;
                                            ?>
                                            <li class="sidebar-menu-item">
                                                <a class="sidebar-menu-link collapsed <?php echo e($isSectionActive ? 'active' : ''); ?>" data-bs-toggle="collapse" href="#frontend_groups_<?php echo e($key); ?>" role="button" aria-expanded="<?php echo e($isSectionActive ? 'true' : 'false'); ?>" aria-controls="frontend_groups_<?php echo e($key); ?>">
                                                    <span>
                                                        <i class="<?php echo e(__(\Illuminate\Support\Arr::get($section, 'icon', ''))); ?>"></i>
                                                    </span>
                                                    <p>
                                                        <?php echo e(__(\Illuminate\Support\Arr::get($section, 'name', ''))); ?>

                                                        <small>
                                                            <i class="ri-arrow-down-s-line"></i>
                                                        </small>
                                                    </p>
                                                </a>
                                                <div class="side-menu-dropdown collapse <?php echo e($isSectionActive ? 'show' : ''); ?>" id="frontend_groups_<?php echo e($key); ?>">
                                                    <ul class="sub-menu">
                                                        <?php $__currentLoopData = $section['types']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $section_key => $section_value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                            <?php
                                                                $subMenuName = \Illuminate\Support\Arr::get($section_value, 'name', '');
                                                                if (!$subMenuName) continue;
                                                                $lowerCaseSubMenuName = strtolower($subMenuName);
                                                               
                                                                $isSubMenuActive = request()->route()->parameter('type') === $lowerCaseSubMenuName && $isSectionActive;
                                                            ?>
                                                            <li class="sub-menu-item">
                                                                <a class="sidebar-menu-link <?php echo e($isSubMenuActive ? 'active' : ''); ?>" href="<?php echo e(route('admin.frontend.sections.index', ['section_key' => $key, 'type' => $lowerCaseSubMenuName])); ?>">
                                                                    <p><?php echo e($subMenuName); ?></p>
                                                                </a>
                                                            </li>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </ul>
                                                </div>
                                            </li>
                                        <?php else: ?>
                                            <?php
                                                $isSimpleSectionActive = request()->route()->parameter('section_key') === $key;
                                            ?>
                                            <li class="sidebar-menu-item">
                                                <a class="sidebar-menu-link <?php echo e($isSimpleSectionActive ? 'active' : ''); ?>" href="<?php echo e(route('admin.frontend.sections.index', $key)); ?>">
                                                    <span>
                                                        <i class="<?php echo e(__(\Illuminate\Support\Arr::get($section, 'icon', ''))); ?>"></i>
                                                    </span>
                                                    <p><?php echo e(__(\Illuminate\Support\Arr::get($section, 'name', ''))); ?></p>
                                                </a>
                                            </li>
                                        <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </ul>
                            </div>
                        </div>
                    </div>
                </li>

                <li class="menu">
                    <a class="menu-link <?php echo e(request()->routeIs('admin.blog.*') ? 'active' :''); ?>" href="<?php echo e(route("admin.blog.index")); ?>">
                        <span class="menu-symbol">
                            <i class="ri-news-line"></i>
                        </span>
                        <span class="menu-label"><?php echo e(translate("Blog")); ?></span>
                    </a>
                </li>
            </ul>

            <ul class="menus">
                <li class="menu">
                    <a class="menu-link <?php echo e(request()->routeIs('admin.support.*') ? 'active' :''); ?>" href="javascript:void(0)">
                        <span class="menu-symbol">
                            <i class="ri-question-line"></i>
                        </span>
                        <span class="menu-label"><?php echo e(translate("Support")); ?></span>
                        <span class="menu-arrow">
                            <i class="ri-arrow-right-s-line"></i>
                        </span>
                    </a>
                    <div class="sub-menu-wrapper <?php echo e(menuShow($isSupportTicketActive)); ?>" <?php echo e(menuShow($isSupportTicketActive) == 'show' ? "style='opacity:1;visibility:visible;'" : ''); ?>>
                        <div class="sub-menu-container">
                            <div class="d-flex align-items-center gap-4 mb-3 px-2 sub-menu-header">
                                <span class="back-to-menu" role="button">
                                    <i class="ri-arrow-left-line"></i>
                                </span>
                                <h6><?php echo e(translate("Support Ticket")); ?></h6>
                            </div>

                            <div class="sidebar-menu-container">
                                <ul class="sidebar-menu">
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(menuShow($isSupportTicketActive) != 'show' ? 'collapsed' : ''); ?>" data-bs-toggle="collapse" href="#currency" role="button" aria-expanded="false" aria-controls="currencyList">
                                            <span>
                                                <i class="ri-money-dollar-circle-line"></i>
                                            </span>
                                            <p> <?php echo e(translate("All Tickets")); ?> <small> <i class="ri-arrow-down-s-line"></i> </small>
                                            </p>
                                        </a>

                                        <div class="side-menu-dropdown collapse <?php echo e(menuShow($isSupportTicketActive)); ?>" id="currency">
                                            <ul class="sub-menu">
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(menuActive(['admin.support.ticket.index'])); ?>" href="<?php echo e(route('admin.support.ticket.index')); ?>">
                                                        <p><?php echo e(translate("Ticket List")); ?></p>
                                                    </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(menuActive(['admin.support.ticket.priority.high'])); ?>" href="<?php echo e(route('admin.support.ticket.priority.high')); ?>">
                                                        <p><?php echo e(translate("High Priority")); ?></p>
                                                    </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(menuActive(['admin.support.ticket.priority.medium'])); ?>" href="<?php echo e(route('admin.support.ticket.priority.medium')); ?>">
                                                        <p><?php echo e(translate("Medium Priority")); ?></p>
                                                    </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(menuActive(['admin.support.ticket.priority.low'])); ?>" href="<?php echo e(route('admin.support.ticket.priority.low')); ?>">
                                                        <p><?php echo e(translate("Low Priority")); ?></p>
                                                    </a>
                                                </li>
                                            </ul>
                                        </div>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.support.ticket.running') ? 'active' :''); ?>" href="<?php echo e(route('admin.support.ticket.running')); ?>">
                                            <span>
                                                <i class="ri-hourglass-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Running tickets")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.support.ticket.answered') ? 'active' :''); ?>" href="<?php echo e(route('admin.support.ticket.answered')); ?>">
                                            <span>
                                                <i class="ri-question-answer-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Answered tickets")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.support.ticket.replied') ? 'active' :''); ?>" href="<?php echo e(route('admin.support.ticket.replied')); ?>">
                                            <span>
                                                <i class="ri-reply-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Replied tickets")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->routeIs('admin.support.ticket.closed') ? 'active' :''); ?>" href="<?php echo e(route('admin.support.ticket.closed')); ?>">
                                            <span>
                                                <i class="ri-door-closed-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Closed tickets")); ?></p>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </li>


                <li class="menu">
                    <a class="menu-link <?php echo e(request()->routeIs('admin.system.*') ? 'active' :''); ?>" href="javascript:void(0)">
                        <span class="menu-symbol">
                            <i class="ri-settings-3-line"></i>
                        </span>
                        <span class="menu-label"><?php echo e(translate("Settings")); ?></span>
                        <span class="menu-arrow">
                            <i class="ri-arrow-right-s-line"></i>
                        </span>
                    </a>
                    <div class="sub-menu-wrapper <?php echo e(menuShow($isSettingActive)); ?>" <?php echo e(menuShow($isSettingActive) == 'show' ? "style='opacity:1;visibility:visible;'" : ''); ?>>
                        <div class="sub-menu-container">
                            <div class="d-flex align-items-center gap-4 mb-3 px-2 sub-menu-header">
                                <span class="back-to-menu" role="button">
                                    <i class="ri-arrow-left-line"></i>
                                </span>
                                <h6><?php echo e(translate("System Settings")); ?></h6>
                            </div>

                            <div class="sidebar-menu-container">
                                <ul class="sidebar-menu">
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->type == "general" ? 'active' : ''); ?>" href="<?php echo e(route("admin.system.setting", ["type" => "general"])); ?>">
                                            <span>
                                                <i class="ri-tools-line"></i>
                                            </span>
                                            <p><?php echo e(translate("General")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->type == "theme" ? 'active' : ''); ?>" 
                                            href="<?php echo e(route("admin.system.setting", ["type" => "theme"])); ?>">
                                            <span>
                                                <i class="ri-paint-brush-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Theme Base")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->type == "automation" ? 'active' : ''); ?>" 
                                            href="<?php echo e(route("admin.system.setting", ["type" => "automation"])); ?>">
                                            <span>
                                                <i class="ri-settings-6-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Automation")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->type == "email_verifcation" ? 'active' : ''); ?>" href="<?php echo e(route("admin.system.setting", ["type" => "email_verifcation"])); ?>">
                                            <span>
                                                <i class="ri-mail-check-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Email Verification")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->type == "authentication" ? 'active' : ''); ?>" href="<?php echo e(route("admin.system.setting", ["type" => "authentication"])); ?>">
                                            <span>
                                                <i class="ri-git-repository-private-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Authentication")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->type == "member" ? 'active' : ''); ?>" href="<?php echo e(route("admin.system.setting", ["type" => "member"])); ?>">
                                            <span>
                                                <i class="ri-user-settings-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Member")); ?></p>
                                        </a>
                                    </li>


                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(menuShow($isCurrencyActive) != 'show' ? 'collapsed' : ''); ?>" data-bs-toggle="collapse" href="#currency" role="button" aria-expanded="false" aria-controls="currencyList">
                                            <span>
                                                <i class="ri-money-dollar-circle-line"></i>
                                            </span>
                                            <p> <?php echo e(translate("Currency")); ?> <small> <i class="ri-arrow-down-s-line"></i> </small>
                                            </p>
                                        </a>

                                        <div class="side-menu-dropdown collapse <?php echo e(menuShow($isCurrencyActive)); ?>" id="currency">
                                            <ul class="sub-menu">
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(menuActive(['admin.system.currency.index'])); ?>" href="<?php echo e(route('admin.system.currency.index')); ?>">
                                                        <p><?php echo e(translate("All Currencies")); ?></p>
                                                    </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(menuActive(['admin.system.currency.active'])); ?>" href="<?php echo e(route('admin.system.currency.active')); ?>">
                                                        <p><?php echo e(translate("Active Currencies")); ?></p>
                                                    </a>
                                                </li>
                                                <li class="sub-menu-item">
                                                    <a class="sidebar-menu-link <?php echo e(menuActive(['admin.system.currency.inactive'])); ?>" href="<?php echo e(route('admin.system.currency.inactive')); ?>">
                                                        <p><?php echo e(translate("Inactive Currencies")); ?></p>
                                                    </a>
                                                </li>
                                            </ul>
                                        </div>
                                    </li>

                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->type == "meta_configurations" ? 'active' : ''); ?>" href="<?php echo e(route("admin.system.setting", ["type" => "meta_configurations"])); ?>">
                                            <span>
                                                <i class="ri-meta-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Meta Configuration")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->type == "recaptcha" ? 'active' : ''); ?>" href="<?php echo e(route("admin.system.setting", ["type" => "recaptcha"])); ?>">
                                            <span>
                                                <i class="ri-recycle-line"></i>
                                            </span>
                                            <p><?php echo e(translate("reCAPTCHA")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->type == "social_login" ? 'active' : ''); ?>" href="<?php echo e(route("admin.system.setting", ["type" => "social_login"])); ?>">
                                            <span>
                                                <i class="ri-login-box-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Social Login")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->type == "plugin" ? 'active' : ''); ?>" href="<?php echo e(route("admin.system.setting", ["type" => "plugin"])); ?>">
                                            <span>
                                                <i class="ri-puzzle-2-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Plugins")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->type == "ai" ? 'active' : ''); ?>" href="<?php echo e(route("admin.system.setting", ["type" => "ai"])); ?>">
                                            <span>
                                                <i class="ri-bard-line"></i>
                                            </span>
                                            <p><?php echo e(translate("AI Management")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(menuActive(['admin.system.language.index'])); ?>" href="<?php echo e(route('admin.system.language.index')); ?>">
                                            <span>
                                                <i class="ri-translate-2"></i>
                                            </span>
                                            <p><?php echo e(translate("Language")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(menuActive(['admin.system.spam.word.index'])); ?>" href="<?php echo e(route('admin.system.spam.word.index')); ?>">
                                            <span>
                                                <i class="ri-article-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Spam words")); ?></p>
                                        </a>
                                    </li>
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(request()->type == "seo" ? 'active' : ''); ?>" href="<?php echo e(route("admin.system.setting", ["type" => "seo"])); ?>">
                                            <span>
                                                <i class="ri-puzzle-2-line"></i>
                                            </span>
                                            <p><?php echo e(translate("SEO Settings")); ?></p>
                                        </a>
                                    </li>

                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(menuActive(['admin.system.info'])); ?>" href="<?php echo e(route('admin.system.info')); ?>">
                                            <span>
                                                <i class="ri-information-2-line"></i>
                                            </span>
                                            <p><?php echo e(translate("System info")); ?></p>
                                        </a>
                                    </li>
                                    
                                    <li class="sidebar-menu-item">
                                        <a class="sidebar-menu-link <?php echo e(menuActive(['admin.system.update.init'])); ?>" href='<?php echo e(route("admin.system.update.init")); ?>'>
                                            <span>
                                                <i class="ri-refresh-line"></i>
                                            </span>
                                            <p><?php echo e(translate("Update")); ?>

                                                <span data-bs-toggle="tooltip" 
                                                        data-bs-placement="top" 
                                                        data-bs-title="<?php echo e(translate('APP Version')); ?>"  
                                                        class="i-badge danger-soft">
                                                    <?php echo e(translate('V')); ?><?php echo e(site_settings("app_version",1.1)); ?>

                                               </span>
                                            </p>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</aside><?php /**PATH C:\wamp64\www\public\mailing\xsender2026\xsender4.1\src\resources\views/admin/partials/sidebar.blade.php ENDPATH**/ ?>