<!-- Sidebar -->
<aside class="sidebar sidebar-expand-lg sidebar-dark">
    <header class="sidebar-header bg-dark">
        <a class="logo-icon" href="<?php echo e(route('admin')); ?>"><img src="<?php echo e(asset('dashboard/images/logo-light-lg')); ?>"
                alt="logo icon"></a>
        <span class="logo">
            <a href="<?php echo e(route('admin')); ?>">
                <!--<img src="<?php echo e(asset('dashboard/images/Final-Logo03.png')); ?>" alt="logo">-->
                <h6 style="color:white; font-weight:bold; margin-bottom:0;">নতুন কুড়ি সার্বিক গ্রাম উন্নয়ন সমবায় সমিতি লিঃ</h6>
            </a>
        </span>
        <span class="sidebar-toggle-fold"></span>
    </header>

    <nav class="sidebar-navigation">
        <ul class="menu">
            <li class="menu-item <?php echo e(Request::routeIs('admin') ? 'active' : ''); ?>">
                <a class="menu-link" href="<?php echo e(route('admin')); ?>">
                    <span class="icon fa fa-home"></span>
                    <span class="title">ড্যাশবোর্ড</span>
                </a>
            </li>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('list-bank_account')): ?>
            <li class="menu-item <?php echo e(Request::routeIs('bank_account.index') ? 'active' : ''); ?>">
                <a class="menu-link" href="<?php echo e(route('bank_account.index')); ?>">
                    <img src="<?php echo e(asset('dashboard/sidebar_icons/bank_card.svg')); ?>" alt="" class="sidebar_icon icon">
                    <span class="title">ব্যাংক হিসাব</span>
                </a>
            </li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['list-customer', 'create-customer'])): ?>
            <li class="menu-category">People</li>


            <li class="menu-item <?php echo e(Request::routeIs('customer.*')  ? 'active open' : ''); ?>">
                <a class="menu-link" href="#">
                    <img src="<?php echo e(asset('dashboard/sidebar_icons/customers.svg')); ?>" alt="" class="sidebar_icon icon">
                    <span class="title">গ্রাহক</span>
                    <span class="arrow"></span>
                </a>

                <ul class="menu-submenu">
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create-customer')): ?>
                    <li class="menu-item <?php echo e(Request::routeIs('customer.create') ? 'active' : ''); ?>">
                        <a class="menu-link" href="<?php echo e(route('customer.create')); ?>">
                            <span class="dot"></span>
                            <span class="title">গ্রাহক যোগ করুন</span>
                        </a>
                    </li>
                    <?php endif; ?>

                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('list-customer')): ?>
                    <li class="menu-item <?php echo e(Request::routeIs('customer.index') ? 'active' : ''); ?>">
                        <a class="menu-link" href="<?php echo e(route('customer.index')); ?>">
                            <span class="dot"></span>
                            <span class="title">গ্রাহক পরিচালনা করুন</span>
                        </a>
                    </li>
                </ul>
            </li>
            <?php endif; ?>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('list-user')): ?>
            <li class="menu-item <?php echo e(Request::routeIs('users.*')  ? 'active open' : ''); ?>">
                <a class="menu-link" href="#">
                    <img src="<?php echo e(asset('dashboard/sidebar_icons/users.svg')); ?>" alt="" class="sidebar_icon icon">
                    <span class="title">ব্যবহারকারী</span>
                    <span class="arrow"></span>
                </a>

                <ul class="menu-submenu">

                    <li class="menu-item <?php echo e(Request::routeIs('users.create') ? 'active' : ''); ?>">
                        <a class="menu-link" href="<?php echo e(route('users.create')); ?>">
                            <span class="dot"></span>
                            <span class="title">ব্যবহারকারী যোগ করুন</span>
                        </a>
                    </li>

                    <li class="menu-item <?php echo e(Request::routeIs('users.index') ? 'active' : ''); ?>">
                        <a class="menu-link" href="<?php echo e(route('users.index')); ?>">
                            <span class="dot"></span>
                            <span class="title">ব্যবহারকারী পরিচালনা করুন</span>
                        </a>
                    </li>
                </ul>
            </li>
            <?php endif; ?>

            <li class="menu-category">হিসাব</li>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['list-loan', 'create-loan'])): ?>
            <li
                class="menu-item <?php echo e(Request::routeIs('loans.create','loans.index') && !Request::routeIs('loans.report') ? 'active open' : ''); ?>">
                <a class="menu-link" href="#">
                    <img src="<?php echo e(asset('dashboard/sidebar_icons/money_list_tick_box.svg')); ?>" alt=""
                        class="sidebar_icon icon">
                    <span class="title">ঋণ</span>
                    <span class="arrow"></span>
                </a>

                <ul class="menu-submenu">
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create-loan')): ?>
                    <li class="menu-item <?php echo e(Request::routeIs('loans.create') ? 'active' : ''); ?>">
                        <a class="menu-link" href="<?php echo e(route('loans.create')); ?>">
                            <span class="dot"></span>
                            <span class="title">ঋণ যোগ করুন</span>
                        </a>
                    </li>
                    <?php endif; ?>
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('list-loan')): ?>
                    <li class="menu-item <?php echo e(Request::routeIs('loans.index') ? 'active' : ''); ?>">
                        <a class="menu-link" href="<?php echo e(route('loans.index')); ?>">
                            <span class="dot"></span>
                            <span class="title">ঋণ পরিচালনা করুন</span>
                        </a>
                    </li>
                </ul>
            </li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['create-savings', 'list-savings', 'withdraw-savings'])): ?>
                <li
                    class="menu-item <?php echo e(Request::routeIs('savings.create','savings.index','savings.withdraw.form') ? 'active open' : ''); ?>">
                    <a class="menu-link" href="#">
                        <img src="<?php echo e(asset('dashboard/sidebar_icons/purchase_cart.svg')); ?>" alt=""
                            class="sidebar_icon icon">
                        <span class="title">সঞ্চয়</span>
                        <span class="arrow"></span>
                    </a>

                    <ul class="menu-submenu">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create-savings')): ?>
                        <li class="menu-item <?php echo e(Request::routeIs('savings.create') ? 'active' : ''); ?>">
                            <a class="menu-link" href="<?php echo e(route('savings.create')); ?>">
                                <span class="dot"></span>
                                <span class="title">সঞ্চয় যোগ করুন</span>
                            </a>
                        </li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('list-savings')): ?>
                        <li class="menu-item <?php echo e(Request::routeIs('savings.index') ? 'active' : ''); ?>">
                            <a class="menu-link" href="<?php echo e(route('savings.index')); ?>">
                                <span class="dot"></span>
                                <span class="title">সঞ্চয় পরিচালনা করুন</span>
                            </a>
                        </li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('withdraw-saving')): ?>
                        <li class="menu-item <?php echo e(Request::routeIs('savings.withdraw.form') ? 'active' : ''); ?>">
                            <a class="menu-link" href="<?php echo e(route('savings.withdraw.form')); ?>">
                                <span class="dot"></span>
                                <span class="title">সঞ্চয় উত্তোলন করুন</span>
                            </a>
                        </li>
                        <?php endif; ?>
                    </ul>
                </li>
                <?php endif; ?>


            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['list-dps', 'create-dps'])): ?>

            <li
                class="menu-item <?php echo e(Request::routeIs('dps.create','dps.index') && !Request::routeIs('dps.all.report') ? 'active open' : ''); ?>">
                <a class="menu-link" href="#">
                    <img src="<?php echo e(asset('dashboard/sidebar_icons/table_money.svg')); ?>" alt="" class="sidebar_icon icon">
                    <span class="title">ডিপিএস</span>
                    <span class="arrow"></span>
                </a>

                <ul class="menu-submenu">
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create-dps')): ?>
                    <li class="menu-item <?php echo e(Request::routeIs('dps.create') ? 'active' : ''); ?>">
                        <a class="menu-link" href="<?php echo e(route('dps.create')); ?>">
                            <span class="dot"></span>
                            <span class="title">ডিপিএস যোগ করুন</span>
                        </a>
                    </li>
                    <?php endif; ?>

                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('list-dps')): ?>


                    <li class="menu-item <?php echo e(Request::routeIs('dps.index') ? 'active' : ''); ?>">
                        <a class="menu-link" href="<?php echo e(route('dps.index')); ?>">
                            <span class="dot"></span>
                            <span class="title">ডিপিএস পরিচালনা করুন</span>
                        </a>
                    </li>
                </ul>
            </li>
            <?php endif; ?>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['list-expense', 'create-expense', 'list-expense_category','list-expense_sub_category',
            'loan_payment','dps_payment'])): ?>
            <li class="menu-category">খরচ এবং সংগ্রহ</li>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('loan_payment')): ?>
            <li class="menu-item <?php echo e(Request::routeIs('loans.installments.report') ? 'active' : ''); ?>">
                <a class="menu-link" href="<?php echo e(route('loans.installments.report')); ?>">
                    <img src="<?php echo e(asset('dashboard/sidebar_icons/money_list.svg')); ?>" alt="" class="sidebar_icon icon">
                    <span class="title">ঋণ পেমেন্ট</span>
                </a>
            </li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('dps_payment')): ?>
            <li class="menu-item <?php echo e(Request::routeIs('dps.installments.report') ? 'active' : ''); ?>">
                <a class="menu-link" href="<?php echo e(route('dps.installments.report')); ?>">
                    <img src="<?php echo e(asset('dashboard/sidebar_icons/payments.svg')); ?>" alt="" class="sidebar_icon icon">
                    <span class="title">ডিপিএস পেমেন্ট</span>
                </a>
            </li>
            <?php endif; ?>
            <li
                class="menu-item <?php echo e(Request::routeIs('expense.*') || Request::routeIs('expense-sub-category.index') || Request::routeIs('expense-category.index') ? 'active open' : ''); ?>">
                <a class="menu-link" href="#">
                    <img src="<?php echo e(asset('dashboard/sidebar_icons/expense.svg')); ?>" alt="" class="sidebar_icon icon">
                    <span class="title">খরচ</span>
                    <span class="arrow"></span>
                </a>

                <ul class="menu-submenu">
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create-expense')): ?>
                    <li class="menu-item <?php echo e(Request::routeIs('expense.create') ? 'active' : ''); ?>">
                        <a class="menu-link" href="<?php echo e(route('expense.create')); ?>">
                            <span class="dot"></span>
                            <span class="title">খরচ যোগ করুন</span>
                        </a>
                    </li>
                    <?php endif; ?>

                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('list-expense')): ?>
                    <li class="menu-item <?php echo e(Request::routeIs('expense.index') ? 'active' : ''); ?>">
                        <a class="menu-link" href="<?php echo e(route('expense.index')); ?>">
                            <span class="dot"></span>
                            <span class="title">খরচ পরিচালনা করুন</span>
                        </a>
                    </li>
                    <?php endif; ?>

                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('list-expense_category')): ?>
                    <li class="menu-item <?php echo e(Request::routeIs('expense-category.index') ? 'active' : ''); ?>">
                        <a class="menu-link" href="<?php echo e(route('expense-category.index')); ?>">
                            <span class="dot"></span>
                            <span class="title">ব্যয়ের প্রধান বিভাগ</span>
                        </a>
                    </li>
                    <?php endif; ?>
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('list-expense_sub_category')): ?>
                    <li class="menu-item <?php echo e(Request::routeIs('expense-sub-category.index') ? 'active' : ''); ?>">
                        <a class="menu-link" href="<?php echo e(route('expense-sub-category.index')); ?>">
                            <span class="dot"></span>
                            <span class="title">ব্যয় উপ-বিভাগ</span>
                        </a>
                    </li>
                    <?php endif; ?>
                </ul>
            </li>
            <?php endif; ?>


            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['loan_report', 'dps_report','collection_report'])): ?>
            <li class="menu-category">Report</li>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check(['loan_report'])): ?>
            <li class="menu-item <?php echo e(Request::routeIs('loans.report') ? 'active' : ''); ?>">
                <a class="menu-link" href="<?php echo e(route('loans.report')); ?>">
                    <img src="<?php echo e(asset('dashboard/sidebar_icons/box_down_arrow.svg')); ?>" class="sidebar_icon icon">
                    <span class="title">ঋণ রিপোর্ট </span>
                </a>
            </li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('dps_report')): ?>

            <li class="menu-item <?php echo e(Request::routeIs('dps.all.report') ? 'active' : ''); ?>">
                <a class="menu-link" href="<?php echo e(route('dps.all.report')); ?>">
                    <img src="<?php echo e(asset('dashboard/sidebar_icons/box_list.svg')); ?>" class="sidebar_icon icon">
                    <span class="title">ডিপিএস রিপোর্ট</span>
                </a>
            </li>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('transaction')): ?>

            <li class="menu-item <?php echo e(Request::routeIs('payments.index') ? 'active' : ''); ?>">
                <a class="menu-link" href="<?php echo e(route('payments.index')); ?>">
                    <img src="<?php echo e(asset('dashboard/sidebar_icons/list_high_to_low.svg')); ?>" class="sidebar_icon icon">
                    <span class="title">ট্রানসাকশান</span>
                </a>
            </li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('collection_report')): ?>

            <li class="menu-item <?php echo e(Request::routeIs('reports.collection') ? 'active' : ''); ?>">
                <a class="menu-link" href="<?php echo e(route('reports.collection')); ?>">
                    <img src="<?php echo e(asset('dashboard/sidebar_icons/box_list.svg')); ?>" class="sidebar_icon icon">
                    <span class="title">ব্যবহারকারী রিপোর্ট</span>
                </a>
            </li>
            <?php endif; ?>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['setting', 'backup', 'list-role', 'list-user'])): ?>
            <li class="menu-category">সেটিং এবং কাস্টমাইজ</li>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('setting')): ?>
            <li class="menu-item <?php echo e(Request::routeIs('pos.pos_setting') ? 'active' : ''); ?>">
                <a class="menu-link" href="<?php echo e(route('pos.pos_setting')); ?>">
                    <span class="icon fa fa-wrench"></span>
                    <span class="title"> সেটিং</span>
                </a>
            </li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('list-role')): ?>
            <li class="menu-item <?php echo e(Request::routeIs('roles.index') ? 'active' : ''); ?>">
                <a class="menu-link" href="<?php echo e(route('roles.index')); ?>">
                    <img src="<?php echo e(asset('dashboard/sidebar_icons/user_role.svg')); ?>" alt="" class="sidebar_icon icon">
                    <span class="title"> অনুমতি</span>
                </a>
            </li>
            <?php endif; ?>




            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('backup')): ?>
            <li class="menu-item <?php echo e(Request::routeIs('backup') ? 'active' : ''); ?>">
                <a class="menu-link" href="<?php echo e(route('backup')); ?>">
                    <img src="<?php echo e(asset('dashboard/sidebar_icons/box_download.svg')); ?>" alt="" class="sidebar_icon icon">
                    <span class="title"> ব্যাকআপ</span>
                </a>
            </li>
            <?php endif; ?>
            <?php endif; ?>
        </ul>
    </nav>

</aside>
<!-- END Sidebar -->
<?php /**PATH /home/demosoftghor/sm.demo.softghor.com/resources/views/partials/sidebar.blade.php ENDPATH**/ ?>