

<?php
  /**
   * Return true if current request path matches any of the given patterns.
   * Usage: isActive(['admin/users*','admin/roles*'])
   */
  function isActive($patterns): bool
  {
    foreach ((array) $patterns as $p) {
      if (request()->is($p))
        return true;
    }
    return false;
  }
?>


<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css"
  integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
  crossorigin="anonymous" referrerpolicy="no-referrer" />

<style>
  .has-arrow {
    color: #fff !important;
  }

  .sidebar_logo_ad {
    height: 100px;
    width: 100px !important;
    border-radius: 50%;
    margin: -14px 10px -20px 46px;
    box-shadow: rgba(50, 50, 93, .25) 0 50px 100px -20px, rgba(0, 0, 0, .3) 0 30px 60px -30px;
    border: 2px solid #ffffff;
    object-fit: cover;
  }

  @media (max-width:768px) {
    .sidebar_logo_ad {
      height: 105px !important;
      width: 105px !important;
      border-radius: 50% !important;
      box-shadow: rgba(50, 50, 93, .25) 0 50px 100px -20px, rgba(0, 0, 0, .3) 0 30px 60px -30px;
      margin-left: 6px !important;
      margin-bottom: -30px !important;
      margin-top: -40px !important;
      border: 2px solid #ffffff !important;
    }
  }

  .icon_menu i {
    font-size: 18px;
    color: #fff !important;
  }

  #sidebar_menu>li>a {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  #sidebar_menu ul li a {
    padding-left: 42px;
  }

  #sidebar_menu li.mm-active>a span,
  #sidebar_menu li a.active span {
    font-weight: 700;
  }

  #sidebar_menu li a.active,
  #sidebar_menu li.mm-active>a {
    color: #111827;
  }

  #sidebar_menu li a.active {
    position: relative;
  }

  #sidebar_menu li a.active::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 6px;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #10b981;
  }
</style>

<nav style="background:#f71818!important;" class="sidebar vertical-scroll ps-container ps-theme-default ps-active-y">
  <div class="logo d-flex justify-content-between">
    <a href="<?php echo e(url('/admin/dashboard')); ?>">
      <?php $companySetup = \App\Models\CompanySetup::first(); ?>
      <img class="sidebar_logo_ad"
        src="<?php echo e($companySetup?->logo ? asset('storage/' . $companySetup->logo) : asset('images/default-logo.png')); ?>"
        alt="Logo">
    </a>
    <div class="sidebar_close_icon d-lg-none text-white">
      <i class="fa-solid fa-xmark text-white"></i>
    </div>
  </div>

  <ul id="sidebar_menu">

    
    <li class="<?php echo e(request()->is('admin/dashboard') ? 'mm-active' : ''); ?>">
      <a href="<?php echo e(url('/admin/dashboard')); ?>" class="<?php echo e(request()->is('admin/dashboard') ? 'active' : ''); ?>"
        aria-current="<?php echo e(request()->is('admin/dashboard') ? 'page' : 'false'); ?>">
        <div class="icon_menu"><i class="fa-solid fa-gauge-high"></i></div>
        <span>Dashboard</span>
      </a>
    </li>

    
    <li class="<?php echo e(isActive(['admin/loans*', 'admin/withdraw-requests*', 'admin/installments*']) ? 'mm-active' : ''); ?>">
      <a class="has-arrow" href="#">
        <div class="icon_menu"><i class="fa-solid fa-list-check"></i></div>
        <span>All Manager</span>
      </a>
      <ul class="">
        <li><a href="<?php echo e(url('/admin/loans')); ?>">Loan Manager</a></li>
        <li><a href="<?php echo e(url('/admin/withdraw-requests')); ?>">Withdraw Manager</a></li>
        <li><a href="<?php echo e(route('admin.installments.report')); ?>">Installments Report</a></li>
      </ul>
    </li>

    
    <li class="<?php echo e(isActive(['admin/deposit-methods*']) ? 'mm-active' : ''); ?>">
      <a class="has-arrow" href="#">
        <div class="icon_menu"><i class="fa-solid fa-credit-card"></i></div>
        <span>Pmt. Method</span>
      </a>
      <ul class="">
        <li><a href="<?php echo e(url('admin/deposit-methods/mobile')); ?>">Mobile Methods</a></li>
        <li><a href="<?php echo e(url('admin/deposit-methods/bank')); ?>">Banking Methods</a></li>
      </ul>
    </li>

    
    <li class="<?php echo e(isActive(['admin/deposit-rules*']) ? 'mm-active' : ''); ?>">
      <a class="has-arrow" href="#">
        <div class="icon_menu"><i class="fa-solid fa-scale-balanced"></i></div>
        <span>Deposit Rules</span>
      </a>
      <ul class="">
        <li><a href="<?php echo e(url('/admin/deposit-rules')); ?>">Rules List</a></li>
        <li><a href="<?php echo e(url('/admin/deposit-rules/create')); ?>">Rule Create</a></li>
      </ul>
    </li>

    
    <li class="<?php echo e(isActive(['admin/loan-settings*']) ? 'mm-active' : ''); ?>">
      <a class="has-arrow" href="#">
        <div class="icon_menu"><i class="fa-solid fa-sliders"></i></div>
        <span>Loan-Settings</span>
      </a>
      <ul class="">
        <li><a href="<?php echo e(url('/admin/loan-settings')); ?>">Loan Settings</a></li>
      </ul>
    </li>

    
    <li class="<?php echo e(isActive(['admin/balance-adjust*']) ? 'mm-active' : ''); ?>">
      <a class="has-arrow" href="#">
        <div class="icon_menu"><i class="fa-solid fa-scale-unbalanced"></i></div>
        <span>Balance Adjust</span>
      </a>
      <ul class="">
        <li><a href="<?php echo e(url('/admin/balance-adjust')); ?>">Balance Adjust</a></li>
      </ul>
    </li>

    
    <li class="<?php echo e(isActive(['admin/banners*']) ? 'mm-active' : ''); ?>">
      <a class="has-arrow" href="#">
        <div class="icon_menu"><i class="fa-regular fa-image"></i></div>
        <span>Banner SetUp</span>
      </a>
      <ul class="">
        <li><a href="<?php echo e(url('/admin/banners')); ?>">Banner Manager</a></li>
      </ul>
    </li>

    
    <li class="<?php echo e(isActive(['admin/users*']) ? 'mm-active' : ''); ?>">
      <a class="has-arrow" href="#">
        <div class="icon_menu"><i class="fa-solid fa-users"></i></div>
        <span>User Manager</span>
      </a>
      <ul class="">
        <li><a href="<?php echo e(url('/admin/users')); ?>">Manage User</a></li>
      </ul>
    </li>

    
    <li class="<?php echo e(isActive(['admin/upload-apps*']) ? 'mm-active' : ''); ?>">
      <a class="has-arrow" href="#">
        <div class="icon_menu"><i class="fa-solid fa-cloud-arrow-up"></i></div>
        <span>App Manager</span>
      </a>
      <ul class="">
        <li><a href="<?php echo e(url('/admin/upload-apps')); ?>">Upload App</a></li>
      </ul>
    </li>

    
    <li class="<?php echo e(isActive(['admin/profile*']) ? 'mm-active' : ''); ?>">
      <a class="has-arrow" href="#">
        <div class="icon_menu"><i class="fa-solid fa-user"></i></div>
        <span>My Profile</span>
      </a>
      <ul class="">
        <li><a href="<?php echo e(url('/admin/profile')); ?>">My Profile</a></li>
      </ul>
    </li>

    
    <li class="<?php echo e(isActive(['company-setups*']) ? 'mm-active' : ''); ?>">
      <a class="has-arrow" href="#">
        <div class="icon_menu"><i class="fa-solid fa-gear"></i></div>
        <span>Settings</span>
      </a>
      <ul class="">
        <li><a href="<?php echo e(url('/company-setups')); ?>">Settings</a></li>
      </ul>
    </li>


   <li class="<?php echo e(isActive(['storage-links*']) ? 'mm-active' : ''); ?>"> 
    <a class="has-arrow" href="#">
        <div class="icon_menu">
            <i class="fa-solid fa-wrench"></i>
        </div>
        <span>Artisan Tools</span>
    </a>
    <ul>
        <li>
            <a href="<?php echo e(url('/storage-link')); ?>">
                <i class="fa-solid fa-link me-2"></i>
                Storage Link
            </a>
        </li>
    </ul>
</li>




  </ul>
</nav><?php /**PATH /home/ecareba2/loan.rkmotorsbike.top/resources/views/backend/common/sidebar.blade.php ENDPATH**/ ?>