<!-- sidebar menu area start -->
<?php
    $usr = Auth::guard('admin')->user();
?>
<div class="sidebar-menu">
    <div class="sidebar-header">
        <div class="logo">
            <a href="<?php echo e(route('admin.dashboard')); ?>">
                <h5 class="text-white">Real Estate</h5>
            </a>
        </div>
    </div>
    <div class="main-menu">
        <div class="menu-inner">
            <nav>
                <ul class="metismenu" id="menu">

                    <?php if($usr->can('dashboard.view')): ?>
                    <li class="active">
                        <a href="javascript:void(0)" aria-expanded="true"><i class="ti-dashboard"></i><span>Dashboard</span></a>
                        <ul class="collapse">
                            <li class="<?php echo e(Route::is('admin.dashboard') ? 'active' : ''); ?>"><a href="<?php echo e(route('admin.dashboard')); ?>">Dashboard</a></li>
                        </ul>
                    </li>
                    <?php endif; ?>

                    <?php if($usr->can('admin.create') || $usr->can('admin.view') || $usr->can('admin.edit') || $usr->can('admin.delete')): ?>
                    <li>
                        <a href="javascript:void(0)" aria-expanded="true"><i class="fa fa-user"></i><span>Channel Partner</span></a>
                        <ul class="collapse <?php echo e(Route::is('admin.admins.create') || Route::is('admin.admins.index') || Route::is('admin.admins.edit') || Route::is('admin.admins.show') ? 'in' : ''); ?>">
                            <?php if($usr->can('admin.view')): ?>
                                <li class="<?php echo e(Route::is('admin.admins.index') || Route::is('admin.admins.edit') ? 'active' : ''); ?>"><a href="<?php echo e(route('admin.admins.index')); ?>">All Channel Partner</a></li>
                            <?php endif; ?>
                            <?php if($usr->can('admin.create')): ?>
                                <li class="<?php echo e(Route::is('admin.admins.create') ? 'active' : ''); ?>"><a href="<?php echo e(route('admin.admins.create')); ?>">Create Channel Partner</a></li>
                            <?php endif; ?>
                        </ul>
                    </li>
                    <?php endif; ?>
					
					<?php if($usr->can('franchise.create') || $usr->can('franchise.view') || $usr->can('franchise.edit') || $usr->can('franchise.delete')): ?>
                    <li>
                        <a href="javascript:void(0)" aria-expanded="true"><i class="fa fa-user"></i><span>Franchise Partner</span></a>
                        <ul class="collapse <?php echo e(Route::is('admin.franchise.create') || Route::is('admin.franchise.index') || Route::is('admin.franchise.edit') || Route::is('admin.franchise.show') ? 'in' : ''); ?>">
                            <?php if($usr->can('admin.view')): ?>
                                <li class="<?php echo e(Route::is('admin.franchise.index') || Route::is('admin.franchise.edit') ? 'active' : ''); ?>"><a href="<?php echo e(route('admin.franchise.index')); ?>">All Franchise Partner</a></li>
                            <?php endif; ?>
                            <?php if($usr->can('admin.create')): ?>
                                <li class="<?php echo e(Route::is('admin.franchise.create') ? 'active' : ''); ?>"><a href="<?php echo e(route('admin.franchise.create')); ?>">Create Franchise Partner</a></li>
                            <?php endif; ?>
                        </ul>
                    </li>
                    <?php endif; ?>

                    <?php if($usr->can('role.create') || $usr->can('role.view') || $usr->can('role.edit') || $usr->can('role.delete')): ?>
                    <li>
                        <a href="javascript:void(0)" aria-expanded="true"><i class="fa fa-tasks"></i><span>Roles & Permissions</span></a>
                        <ul class="collapse <?php echo e(Route::is('admin.roles.create') || Route::is('admin.roles.index') || Route::is('admin.roles.edit') || Route::is('admin.roles.show') ? 'in' : ''); ?>">
                            <?php if($usr->can('role.view')): ?>
                                <li class="<?php echo e(Route::is('admin.roles.index') || Route::is('admin.roles.edit') ? 'active' : ''); ?>"><a href="<?php echo e(route('admin.roles.index')); ?>">All Roles</a></li>
                            <?php endif; ?>
                            <?php if($usr->can('role.create')): ?>
                                <li class="<?php echo e(Route::is('admin.roles.create') ? 'active' : ''); ?>"><a href="<?php echo e(route('admin.roles.create')); ?>">Create Role</a></li>
                            <?php endif; ?>
                        </ul>
                    </li>
                    <?php endif; ?>

                    <?php if($usr->can('myteam.view')): ?>
                    <li>
                        <a href="javascript:void(0)" aria-expanded="true"><i class="fa fa-users"></i><span>My Team</span></a>
                        <ul class="collapse <?php echo e(Route::is('admin.myteam.index') ? 'in' : ''); ?>">
                            <?php if($usr->can('myteam.view')): ?>
                                <li class="<?php echo e(Route::is('admin.myteam.index') ? 'active' : ''); ?>"><a href="<?php echo e(route('admin.myteam.index')); ?>">My Team List</a></li>
                            <?php endif; ?>
                        </ul>
                    </li>
                    <?php endif; ?>
                </ul>
            </nav>
        </div>
    </div>
</div>
<!-- sidebar menu area end -->
<?php /**PATH F:\wamp64\www\realestate.la\resources\views/backend/layouts/partials/sidebar.blade.php ENDPATH**/ ?>