<input name="_token" type="hidden" class="token_user" value="<?php echo e(csrf_token()); ?>">
<div id="msgheader">
    <div class="right-panel">
        <?php
            $res = App\Helpers\CustomHelper::message();
        ?>

        <div class="notifications chat-icon" id="msg-lists" style="cursor: pointer;">
            <div class="chat-main">
                <i class="fas fa-comment-dots"></i>
                <div class="counts">
                    <span class="count <?php if($res['messagecount']==0): ?> zerocount <?php endif; ?>"><?php echo e($res['messagecount']); ?></span>
                </div>
            </div>
            <div class="notification-list" style="display:none;">
                <div class="row">
                    <div class="col-lg-12">
                        <h4 class="msg">Messages</h4>
                    </div>
                </div>
                <div class="list-of">
                    <?php if($res['totalcount'] == 0): ?>
                        <span>No Messages</span>
                    <?php else: ?>

                 
                        <?php $__currentLoopData = $res['messagelist']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $mlist): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                     
                        <?php echo $__env->make('include.messaging-list-extended', ['mlist' => $mlist], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                </div>
                <?php if($res['totalcount'] > 5): ?>
                    <div class="row">
                        <div class="col-lg-12">
                            <a href="<?php echo e(url('/messagelisting')); ?>" class="btn btn-readmore">Read more</a>
                        </div>
                    </div>
                <?php endif; ?>
            </div>
        </div>
        <div class="pro-details">
            <div class="dropdown">
                <div class="dropbtn f-small serBtn"><i class="far fa-user" aria-hidden="true"></i>
                    <div class="name-company">
                        <span><?php echo e(Auth::user()->name); ?></span>
                        <span>[ <?php if(Auth::user()->user_type == '3'): ?> Manufacturer
                            <?php elseif(Auth::user()->user_type == '2'): ?>
                                Vendor
                            <?php elseif(Auth::user()->user_type == '1'): ?>
                                Buyer
                            <?php elseif(Auth::user()->user_type == '7'): ?>
                                Group Buyer
                            <?php elseif(Auth::user()->user_type == '5'): ?>
                                Procurement Body
                            <?php elseif(Auth::user()->user_type == '6'): ?>
                                Government Body
                            <?php else: ?>
                                <?php if(Auth::user()->subbuyer_role == '1'): ?>
                                    Purchase Admin
                                <?php elseif(Auth::user()->subbuyer_role == '2'): ?>
                                    Biomedical Admin
                                <?php elseif(Auth::user()->subbuyer_role == '3'): ?>
                                    Accounts Admin
                                <?php elseif(Auth::user()->subbuyer_role == '4'): ?>
                                    GM Procurement
                                <?php else: ?>
                                    Store Admin
                                <?php endif; ?>
                            <?php endif; ?> ]</span>
                    </div>
                </div>
                <div class="dropdown-content">
                    <a href="<?php echo e(url('/userprofile')); ?>"><i class="fas fa-user-alt" aria-hidden="true"></i> Profile
                        & settings</a>
                       
                    <a href="<?php echo e(url('/logout')); ?>">
                        <i class="fas fa-sign-out-alt" aria-hidden="true"></i> Logout
                    </a>
                </div>
            </div>
        </div>
        <div class="bars">
            <i class="fas fa-bars"></i>
        </div>
    </div>
</div>
</div>
<div class="main-container" id="">
    <div id="notification">
        <div class="side-bar" id="sidebarcount">
            <div class="menus">
                <?php if(Auth::user()->is_admin == '1'): ?>
                    <ul>
                        <li>
                            <a href="<?php echo e(url('/admin/dashboard')); ?>"
                                class="menu-lists <?php if($page == 'dashboard'){ ?> active <?php } ?>">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    My Dashboard
                                </div>
                            </a>
                        </li>
                        
                        <li>
                            <a href="<?php echo e(url('/admin/productslist')); ?>"
                                class="menu-lists <?php if($page == 'products'){ ?> active <?php } ?>">
                                <div class="getaquote">
                                </div>
                                <div class="menu-title">
                                    Products
                                </div>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo e(url('/admin/manufacturers')); ?>"
                                class="menu-lists <?php if($page == 'manufacturers'){ ?> active <?php } ?>">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/dashboard.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    Manufacturers
                                </div>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo e(url('admin/vendors')); ?>"
                                class="menu-lists <?php if($page == 'vendors'){ ?> active <?php } ?>">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/dashboard.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    Vendors
                                </div>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo e(url('admin/buyers')); ?>"
                                class="menu-lists <?php if($page == 'buyers'){ ?> active <?php } ?>">
                                <div class="dealers">
                                </div>
                                <div class="menu-title">
                                    Buyers
                                </div>
                            </a>
                        </li>
                        <li class="mobile-show">
                            <a href="#" class="menu-lists ">
                                <div class="sideIc">
                                    <i class="fas fa-user-alt" aria-hidden="true"></i>
                                </div>
                                <div class="menu-title">
                                    Profile & Setting
                                </div>
                            </a>
                        </li>
                        <li class="mobile-show">
                            <a href="<?php echo e(url('/logout')); ?>" class="menu-lists ">
                                <div class="sideIc">
                                    <i class="fas fa-sign-out-alt" aria-hidden="true"></i>
                                </div>
                                <div class="menu-title">
                                    Logout
                                </div>
                            </a>
                        </li>
                    </ul>
                <?php else: ?>

                
                    <?php if(Auth::user()->user_type == '1'  || Auth::user()->user_type == '6'): ?>
                        <ul>
                            <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="<?php echo e(url('/buyers/dashboard')); ?>"
                                    class="menu-lists <?php if($page == 'dashboard'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        My Dashboard
                                    </div>
                                </a>
                            </li>
                            <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="<?php echo e(url('/howtoworks')); ?>"
                                    class="menu-lists <?php if($page == 'howtoworks'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        How to Works
                                    </div>
                                </a>
                            </li>

                            <li class="nav-item dropdown <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                    href="#padmincer" role="button" aria-expanded="true"
                                    aria-controls="purchaseadmin">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                       Get Certified
                                    </div>
                                </a>
                                <ul <?php if(($page == 'course')||($page=='certificate')){ ?> class="collapsed"
                                    <?php } else { ?>class="collapse"<?php }  ?>
                                    id="padmincer">

									<li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>" >
										<a href="https://www.meddbot.com/lms/?user_id=<?php echo e(Auth::user()->id); ?>&user_role=user&add_course=yes"
                                            target="_blank"  class="menu-lists <?php if($page == 'course'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                               Create Courses
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>" >
                                        <a href="<?php echo e(url('/courses')); ?>"
                                            class="menu-lists <?php if($page == 'course'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                               Courses
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('/certificates')); ?>"
                                            class="menu-lists <?php if($page == 'certificate'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                               Certificates
                                            </div>
                                        </a>
                                    </li>
                                </ul>
                            </li>

                            


                            
                            <li class="nav-item dropdown <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                    href="#buyerusers" role="button" aria-expanded="true"
                                    aria-controls="buyerusers">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Create Users
                                    </div>
                                </a>
                                <ul <?php if($page == 'create department'){ ?> class="collapsed"
                                    <?php }elseif($page == 'managebuyeruser'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                    id="buyerusers">
                                    <li class="nav-item">
                                        <a href="<?php echo e(url('buyers/manage_buyeruser')); ?>"
                                            class="menu-lists <?php if($page == 'managebuyeruser'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Manage Buyer User
                                            </div>
                                        </a>
                                    </li>
                              
                                </ul>
                            </li>
                            <li class="nav-item dropdown <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                    href="#padmin" role="button" aria-expanded="true"
                                    aria-controls="purchaseadmin">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Purchase Order
                                    </div>
                                </a>
                                <ul <?php if(($page == 'PurchaseOrder')||($page=='Ordersummary')){ ?> class="collapsed"
                                    <?php }elseif($page == 'PurchaseOrder'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                    id="padmin">
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>" >
                                        <a href="<?php echo e(url('buyers/create_purchaseorder')); ?>"
                                            class="menu-lists <?php if($page == 'PurchaseOrder'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Create Purchase Order
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('buyers/order_summary')); ?>"
                                            class="menu-lists <?php if($page == 'Ordersummary'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Purchase Order Summary
                                            </div>
                                        </a>
                                    </li>
                                </ul>
                            </li>
                            <li class="nav-item dropdown <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                    href="#gadmin" role="button" aria-expanded="true"
                                    aria-controls="buyerusers">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        GM
                                    </div>
                                </a>
                                <ul <?php if($page == 'create department'){ ?> class="collapsed"
                                    <?php }elseif($page == 'create_purchaseorder'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                    id="gadmin">
                                    
                                    
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                            <a href="<?php echo e(url('buyers/approveregsoldproducts')); ?>"
                                                class="menu-lists <?php if($page == 'approveregsoldproducts'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Approve Register Sold Products
                                                </div>
                                            </a>
                                        </li>

                                        <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                            <a href="<?php echo e(url('buyers/account_summary')); ?>"
                                                class="menu-lists <?php if($page == 'managepayment'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Accounts Summary
                                                </div>
                                            </a>
                                        </li>
                                        <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                            <a href="<?php echo e(url('buyers/manage_payments_pending')); ?>"
                                                class="menu-lists <?php if($page == 'managepayment'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Manage Payments
                                                </div>
                                            </a>
                                        </li>
                              
                                </ul>
                            </li>
                            <li class="nav-item dropdown <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                    href="#buyeruserss" role="button" aria-expanded="true"
                                    aria-controls="buyeruserss">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Biomedical
                                    </div>
                                </a>
                                <ul <?php if($page == 'create department'){ ?> class="collapsed"
                                    <?php }elseif($page == 'managebuyeruser'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                    id="buyeruserss">
                                    <li class="nav-item">
                                        <a href="<?php echo e(url('buyers/prerequisites_order')); ?>"
                                            class="menu-lists <?php if($page == 'managebuyeruser'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Pre-Requisite Order
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('/buyers/received_products_biomedical')); ?>"
                                            class="menu-lists <?php if($page == 'request_product'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Installation Status
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('buyers/register_complaints')); ?>"
                                            class="menu-lists <?php if($page == 'registercomplaints'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                               Register complaints
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('buyers/complaint_status')); ?>"
                                            class="menu-lists <?php if($page == 'inspectionstatus'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Complaint Status
                                            </div>
                                        </a>
                                    </li>
                                </ul>
                            </li>

                            <li class="nav-item dropdown <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                    href="#storeusers5" role="button" aria-expanded="true"
                                    aria-controls="storeusers5">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Store
                                    </div>
                                </a>
                                <ul <?php if($page == 'create department'){ ?> class="collapsed"
                                    <?php }elseif($page == 'managebuyeruser'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                    id="storeusers5">
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('buyers/store_summary')); ?>"
                                            class="menu-lists <?php if($page == 'PurchaseOrder'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Order Summary
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('buyers/inspection_status_all')); ?>"
                                            class="menu-lists <?php if($page == 'inspectionstatus'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Inspection Status
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('buyers/complaint_status')); ?>"
                                            class="menu-lists <?php if($page == 'inspectionstatus'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Complaint Status
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('buyers/account_summary')); ?>"
                                            class="menu-lists <?php if($page == 'inspectionstatus'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Accounts Summary


                                            </div>
                                        </a>
                                    </li>
                                </ul>
                            </li>


                            <li class="nav-item dropdown <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                    href="#accounts-main" role="button" aria-expanded="true"
                                    aria-controls="accounts-main">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Accounts Admin
                                    </div>
                                </a>
                                <ul <?php if($page == 'managepbg'){ ?> class="collapsed"
                                    <?php }elseif($page == 'managebuyeruser'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                    id="accounts-main">
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('buyers/manage_pbg')); ?>"
                                            class="menu-lists <?php if($page == 'managepbg'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Manage PBG
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('buyers/manage_payments_pending')); ?>"
                                            class="menu-lists <?php if($page == 'managepayment'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Manage Payments
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('buyers/account_summary')); ?>"
                                            class="menu-lists <?php if($page == 'managepayment'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Accounts Summary
                                            </div>
                                        </a>
                                    </li>
                                </ul>
                            </li>

                            <?php if(Auth::user()->user_status == '0'): ?>
                                <li class="disabled">
                                <?php else: ?>
                                <li>
                            <?php endif; ?>
                            <?php
                                $rescount = App\Helpers\CustomHelper::sidebarBuyercount();
                            ?>
                            <a href="<?php echo e(url('buyers/getquote')); ?>"
                                class="menu-lists <?php if($page == 'getquotes'){ ?> active <?php } ?>">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-02.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    Get a quote
                                </div>
                            </a>
                            </li>
                            <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>" >
                                <a href="<?php echo e(url('buyers/quotestatus')); ?>"
                                    class="menu-lists <?php if($page == 'quotestatus'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-03.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Quote status <span class="counts <?php if($rescount['quotestatuscount']==0): ?> zerocount <?php endif; ?>"><?php echo e($rescount['quotestatuscount']); ?></span>
                                    </div>
                                </a>
                            </li>
                            <?php
                                $res = App\Helpers\CustomHelper::side_menu_order_count_buyer();
                                //print_r($res['ordercount']);
                            ?>
                            <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="<?php echo e(url('buyers/orderlists')); ?>"
                                    class="menu-lists <?php if($page == 'orders'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-04.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        My Orders <span class="counts <?php if($rescount['my_orderscount']==0): ?> zerocount <?php endif; ?>"><?php echo e($rescount['my_orderscount']); ?></span>
                                    </div>
                                </a>
                            </li>
                            <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="<?php echo e(url('buyers/asset_management')); ?>"
                                    class="menu-lists <?php if($page == 'assetmanagement'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-05.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Asset Management <span class="counts  <?php if($rescount['registercount']==0): ?> zerocount <?php endif; ?>"><?php echo e($rescount['registercount']); ?></span>
                                    </div>
                                </a>
                            </li>
                            <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="<?php echo e(url('buyers/groupbuyerrequest')); ?>"
                                    class="menu-lists <?php if($page == 'groupbuyerrequest'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-14.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Buyer Request
                                    </div>
                                </a>
                            </li>
                            <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="<?php echo e(url('buyers/product_tracking')); ?>"
                                    class="menu-lists <?php if($page == 'producttracking'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-15.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Product Tracking
                                    </div>
                                </a>
                            </li>
                            <li class="nav-item dropdown <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                    href="#department_create" role="button" aria-expanded="true"
                                    aria-controls="department_create">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-11.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Create Department <span
                                            class="counts  <?php if($rescount['departmentcount']==0): ?> zerocount <?php endif; ?>"><?php echo e($rescount['departmentcount']); ?></span>
                                    </div>
                                </a>
                                <ul <?php if($page == 'create department'){ ?> class="collapsed"
                                    <?php }elseif($page == 'Sevice engg registration'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                    id="department_create">
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('buyers/create_department')); ?>"
                                            class="menu-lists <?php if($page == 'create department'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Create Department
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('/buyers/request_product')); ?>"
                                            class="menu-lists <?php if($page == 'request_product'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                                Request Product Name
                                            </div>
                                        </a>
                                    </li>
                                </ul>
                            </li>
                            <!--<li>
      <a href="<?php echo e(url('buyers/create_department_user')); ?>" class="menu-lists <?php if($page == 'create department user'){ ?> active <?php } ?>">
       <div class="sideIc">
                                <img src="<?php echo e(url('assets/images/icons/ic-06.png')); ?>">
                            </div>
       <div class="menu-title">
       Create Department User <span class="counts">10</span>
       </div>
      </a>
     </li>!-->
                            <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>" >
                                <a href="<?php echo e(url('buyers/approveddealers')); ?>"
                                    class="menu-lists <?php if($page == 'approveddealers'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                         Dealers And Manufacturers Approvals<span
                                            class="counts <?php if($rescount['approveddealerscount']==0): ?> zerocount <?php endif; ?>)"><?php echo e($rescount['approveddealerscount']); ?></span>
                                    </div>
                                </a>
                            </li>


                            <li  class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="<?php echo e(url('buyers_lab/lab')); ?>"
                                    class="menu-lists <?php if($page == 'labs'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-02.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Lab <span ></span>
                                    </div>
                                </a>
                            </li>

                            <li class="mobile-show <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="#" class="menu-lists ">
                                    <div class="sideIc">
                                        <i class="fas fa-user-alt" aria-hidden="true"></i>
                                    </div>
                                    <div class="menu-title">
                                        Profile & Setting
                                    </div>
                                </a>
                            </li>
                            <li class="mobile-show <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="<?php echo e(url('/logout')); ?>" class="menu-lists ">
                                    <div class="sideIc">
                                        <i class="fas fa-sign-out-alt" aria-hidden="true"></i>
                                    </div>
                                    <div class="menu-title">
                                        Logout
                                    </div>
                                </a>
                            </li>
                        </ul>




                    <?php elseif(Auth::user()->user_type == '5'): ?>
                    <ul>         
                        <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                            <a href="<?php echo e(url('/buyers/dashboard')); ?>"
                                class="menu-lists <?php if($page == 'dashboard'){ ?> active <?php } ?>">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    My Dashboard
                                </div>
                            </a>
                        </li>

                        <li  class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                            <a href="<?php echo e(url('/howtoworks')); ?>"
                                class="menu-lists <?php if($page == 'howtoworks'){ ?> active <?php } ?>">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    How to Works
                                </div>
                            </a>
                        </li>
                        <li class="nav-item dropdown <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                            <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                href="#padmin" role="button" aria-expanded="true"
                                aria-controls="purchaseadmin">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                </div>
                                <div class="menu-title">
                                   Get Certified
                                </div>
                            </a>
                            <ul <?php if(($page == 'PurchaseOrder')||($page=='Ordersummary')){ ?> class="collapsed"
                                <?php }elseif($page == 'PurchaseOrder'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                id="padmin">

								<li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>" >
									<a href="https://www.meddbot.com/lms/?user_id=<?php echo e(Auth::user()->id); ?>&user_role=user&add_course=yes"
										target="_blank"  class="menu-lists <?php if($page == 'course'){ ?> active <?php } ?>">
										<div class="menu-title">
										   Create Courses
										</div>
									</a>
								</li>

                                <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>" >
                                    <a href="<?php echo e(url('/courses')); ?>"
                                        class="menu-lists <?php if($page == 'course'){ ?> active <?php } ?>">
                                        <div class="menu-title">
                                           Courses
                                        </div>
                                    </a>
                                </li>
                                <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                    <a href="<?php echo e(url('/certificates')); ?>"
                                        class="menu-lists <?php if($page == 'certificate'){ ?> active <?php } ?>">
                                        <div class="menu-title">
                                           Certificates
                                        </div>
                                    </a>
                                </li>
                            </ul>
                        </li>

                        <li  class=" <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                            <a href="<?php echo e(url('buyers/assign_buyer')); ?>"
                                class="menu-lists <?php if($page == 'assignbuyer'){ ?> active <?php } ?>">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    Add Hospitals
                                </div>
                            </a>
                        </li>
                        
                            <li  class=" <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="<?php echo e(url('buyers/manage_buyeruser')); ?>"
                                    class="menu-lists <?php if($page == 'managebuyeruser'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Manage Buyer User
                                    </div>
                                </a>
                            </li>
                            
                        <li  class=" <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                            <a href="<?php echo e(url('buyers/create_department')); ?>"
                                class="menu-lists <?php if($page == 'create department'){ ?> active <?php } ?>">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    Create Department 
                                </div>
                            </a>
                        </li>


                        <li class="mobile-show <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                            <a href="#" class="menu-lists ">
                                <div class="sideIc">
                                    <i class="fas fa-user-alt" aria-hidden="true"></i>
                                </div>
                                <div class="menu-title">
                                    Profile & Setting
                                </div>
                            </a>
                        </li>
                        <li class="mobile-show <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                            <a href="<?php echo e(url('/logout')); ?>" class="menu-lists ">
                                <div class="sideIc">
                                    <i class="fas fa-sign-out-alt" aria-hidden="true"></i>
                                </div>
                                <div class="menu-title">
                                    Logout
                                </div>
                            </a>
                        </li>
                    </ul>
                    <?php elseif(Auth::user()->user_type == '4'): ?>
                        <ul>
                            <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="<?php echo e(url('/buyers/dashboard')); ?>"
                                    class="menu-lists <?php if($page == 'dashboard'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        My Dashboard
                                    </div>
                                </a>
                            </li>
                            <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="<?php echo e(url('/howtoworks')); ?>"
                                    class="menu-lists <?php if($page == 'howtoworks'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        How to Works
                                    </div>
                                </a>
                            </li>
                            <li class="nav-item dropdown <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                    href="#cert" role="button" aria-expanded="true"
                                    aria-controls="purchaseadmin">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                       Get Certified
                                    </div>
                                </a>
                                <ul <?php if(($page == 'courses')){ ?> class="collapsed"
                                    <?php }else { ?>class="collapse"<?php }  ?>
                                    id="cert">
									<li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>" >
										<a href="https://www.meddbot.com/lms/?user_id=<?php echo e(Auth::user()->id); ?>&user_role=user&add_course=yes"
                                            target="_blank"  class="menu-lists <?php if($page == 'course'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                               Create Courses
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>" >
                                        <a href="<?php echo e(url('/courses')); ?>"
                                            class="menu-lists <?php if($page == 'course'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                               Courses
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('/certificates')); ?>"
                                            class="menu-lists <?php if($page == 'certificate'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                               Certificates
                                            </div>
                                        </a>
                                    </li>
                                </ul>
                            </li>
                            <?php if(Auth::user()->subbuyer_role == '1'): ?>
                                <li class="nav-item">
                                    <a href="<?php echo e(url('/buyers/add_user')); ?>"
                                        class="menu-lists <?php if($page == 'manageVendorManufacturer'){ ?> active <?php } ?>">
                                        <div class="sideIc">
                                            <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                        </div>
                                        <div class="menu-title">
                                            Vendor/Manufacturer
                                        </div>
                                    </a>
                                </li>
                                <li class="nav-item dropdown">
                                    <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                        href="#buyerusers" role="button" aria-expanded="true"
                                        aria-controls="buyerusers">
                                        <div class="sideIc">
                                            <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                        </div>
                                        <div class="menu-title">
                                            Purchase
                                        </div>
                                    </a>
                                    <ul <?php if(($page == 'PurchaseOrder')||($page=='Ordersummary')){ ?> class="collapsed"
                                        <?php }elseif($page == 'PurchaseOrder'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                        id="buyerusers">
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/create_purchaseorder')); ?>"
                                                class="menu-lists <?php if($page == 'PurchaseOrder'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Create Purchase Order
                                                </div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/order_summary')); ?>"
                                                class="menu-lists <?php if($page == 'Ordersummary'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Purchase Order Summary
                                                </div>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            <?php elseif(Auth::user()->subbuyer_role == '2'): ?>
                                <li class="nav-item dropdown">
                                    <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                        href="#buyerusers" role="button" aria-expanded="true"
                                        aria-controls="buyerusers">
                                        <div class="sideIc">
                                            <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                        </div>
                                        <div class="menu-title">
                                            Biomedical
                                        </div>
                                    </a>
                                    <ul <?php if($page == 'create department'){ ?> class="collapsed"
                                        <?php }elseif($page == 'managebuyeruser'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                        id="buyerusers">
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/prerequisites_order')); ?>"
                                                class="menu-lists <?php if($page == 'managebuyeruser'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Pre-Requisite Order
                                                </div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('/buyers/received_products_biomedical')); ?>"
                                                class="menu-lists <?php if($page == 'request_product'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Installation Status
                                                </div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/register_complaints')); ?>"
                                                class="menu-lists <?php if($page == 'registercomplaints'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                   Register complaints
                                                </div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/complaint_status')); ?>"
                                                class="menu-lists <?php if($page == 'inspectionstatus'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Complaint Status
                                                </div>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            <?php elseif(Auth::user()->subbuyer_role == '3'): ?>
                                <li class="nav-item dropdown">
                                    <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                        href="#accounts" role="button" aria-expanded="true"
                                        aria-controls="accounts">
                                        <div class="sideIc">
                                            <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                        </div>
                                        <div class="menu-title">
                                            Accounts Summary
                                        </div>
                                    </a>
                                    <ul <?php if($page == 'managepbg'){ ?> class="collapsed"
                                        <?php }elseif($page == 'managebuyeruser'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                        id="accounts">
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/manage_pbg')); ?>"
                                                class="menu-lists <?php if($page == 'managepbg'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Manage PBG
                                                </div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/manage_payments_pending')); ?>"
                                                class="menu-lists <?php if($page == 'managepayment'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Manage Payments
                                                </div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/account_summary')); ?>"
                                                class="menu-lists <?php if($page == 'managepayment'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Accounts Summary
                                                </div>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            <?php elseif(Auth::user()->subbuyer_role == '4'): ?>
                                <li class="nav-item dropdown">
                                    <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                        href="#buyerusers4" role="button" aria-expanded="true"
                                        aria-controls="buyerusers4">
                                        <div class="sideIc">
                                            <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                        </div>
                                        <div class="menu-title">
                                            Purchase Order
                                        </div>
                                    </a>
                                    <ul <?php if($page == 'Ordersummary'){ ?> class="collapsed"
                                        <?php }elseif($page == 'managebuyeruser'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                        id="buyerusers4">
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/order_summary')); ?>"
                                                class="menu-lists <?php if($page == 'Ordersummary'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Purchase Order Summary
                                                </div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/extensiondate_process_pending')); ?>"
                                                class="menu-lists <?php if($page == 'managebuyeruser'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Extension Date Approvals
                                                </div>
                                            </a>
                                        </li>
                                        
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/approveregsoldproducts')); ?>"
                                                class="menu-lists <?php if($page == 'approveregsoldproducts'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Approve Register Sold Products
                                                </div>
                                            </a>
                                        </li>

                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/manage_payments_pending')); ?>"
                                                class="menu-lists <?php if($page == 'managepayment'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Manage Payments
                                                </div>
                                            </a>
                                        </li>

                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/account_summary')); ?>"
                                                class="menu-lists <?php if($page == 'managebuyeruser'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Accounts Summary
                                                </div>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                                
                            <?php elseif(Auth::user()->subbuyer_role == '5'): ?>
                                <li class="nav-item dropdown">
                                    <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                        href="#storeusers4" role="button" aria-expanded="true"
                                        aria-controls="storeusers4">
                                        <div class="sideIc">
                                            <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                        </div>
                                        <div class="menu-title">
                                            Store
                                        </div>
                                    </a>
                                    <ul <?php if($page == 'create department'){ ?> class="collapsed"
                                        <?php }elseif($page == 'managebuyeruser'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                        id="storeusers4">
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/store_summary')); ?>"
                                                class="menu-lists <?php if($page == 'PurchaseOrder'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Order Summary
                                                </div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/inspection_status_all')); ?>"
                                                class="menu-lists <?php if($page == 'inspectionstatus'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Inspection Status
                                                </div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/complaint_status')); ?>"
                                                class="menu-lists <?php if($page == 'inspectionstatus'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Complaint Status
                                                </div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="<?php echo e(url('buyers/account_summary')); ?>"
                                                class="menu-lists <?php if($page == 'inspectionstatus'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                    Accounts Summary


                                                </div>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            <?php else: ?>
                            <?php endif; ?>
                            <li class="mobile-show">
                                <a href="#" class="menu-lists ">
                                    <div class="sideIc">
                                        <i class="fas fa-user-alt" aria-hidden="true"></i>
                                    </div>
                                    <div class="menu-title">
                                        Profile & Setting
                                    </div>
                                </a>
                            </li>
                            <li class="mobile-show">
                                <a href="<?php echo e(url('/logout')); ?>" class="menu-lists ">
                                    <div class="sideIc">
                                        <i class="fas fa-sign-out-alt" aria-hidden="true"></i>
                                    </div>
                                    <div class="menu-title">
                                        Logout
                                    </div>
                                </a>
                            </li>
                        </ul>
                    <?php elseif(Auth::user()->user_type == '2'): ?>
                        <?php
                            $resvendorcount = App\Helpers\CustomHelper::sidebarVendorcount();
                        ?>
                        <ul class="nav <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                            <li>
                                <a href="<?php echo e(url('/vendors/dashboard')); ?>"
                                    class="menu-lists <?php if($page == 'dashboard'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        My Dashboard
                                    </div>
                                </a>
                            </li>
                            <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="<?php echo e(url('/howtoworks')); ?>"
                                    class="menu-lists <?php if($page == 'howtoworks'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        How to Works
                                    </div>
                                </a>
                            </li>
                            <li class="nav-item dropdown <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                    href="#padmin" role="button" aria-expanded="true"
                                    aria-controls="purchaseadmin">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                       Get Certified
                                    </div>
                                </a>
                                <ul <?php if(($page == 'PurchaseOrder')||($page=='Ordersummary')){ ?> class="collapsed"
                                    <?php }elseif($page == 'PurchaseOrder'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                    id="padmin">
									<li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>" >
										<a href="https://www.meddbot.com/lms/?user_id=<?php echo e(Auth::user()->id); ?>&user_role=user&add_course=yes"
                                            target="_blank"  class="menu-lists <?php if($page == 'course'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                               Create Courses
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>" >
                                        <a href="<?php echo e(url('/courses')); ?>"
                                            class="menu-lists <?php if($page == 'course'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                               Courses
                                            </div>
                                        </a>
                                    </li>
                                    <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                        <a href="<?php echo e(url('/certificates')); ?>"
                                            class="menu-lists <?php if($page == 'certificate'){ ?> active <?php } ?>">
                                            <div class="menu-title">
                                               Certificates
                                            </div>
                                        </a>
                                    </li>
                                </ul>
                            </li>

                            <?php if(Auth::user()->user_status == '0'): ?>
                            <li class="disabled">
                            <?php else: ?>
                            <li class="nav-item dropdown ">
                        <?php endif; ?>
                        <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                            href="#register_manuf" role="button" aria-expanded="true"
                            aria-controls="Registermanufacturer">
                            <div class="sideIc">
                                <img src="<?php echo e(url('assets/images/icons/ic-12.png')); ?>">
                            </div>
                            <div class="menu-title">
                                Register with manufacturer
                            </div>
                        </a>
                        <ul <?php if($page == 'dealerregistration'){ ?> class="collapsed"
                            <?php }elseif($page == 'manufacturerregister'){ ?>class="collapsed"<?php } elseif($page == 'manufacturer'){ ?>class="collapsed"<?php }   else { ?>class="collapse"<?php }  ?>
                            id="register_manuf">
                            <li class="nav-item">
                                <a href="<?php echo e(url('vendors/dealerregistration')); ?>"
                                    class="menu-lists <?php if($page == 'dealerregistration'){ ?> active <?php } ?>">
                                    <div class="menu-title">Register as dealer</div>
                                </a>
                            <li class="nav-item">
                                <a href="<?php echo e(url('vendors/manufacturerregister')); ?>"
                                    class="menu-lists <?php if($page == 'manufacturerregister'){ ?> active <?php } ?>">
                                    <div class="menu-title">Add Manufacturer To The Database</div>
                                </a>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo e(url('vendors/manufacturer')); ?>"
                                    class="menu-lists <?php if($page == 'manufacturer'){ ?> active <?php } ?>">
                                    <div class="menu-title"> Manufacturers </div>
                                </a>
                            </li>
                        </ul>
                        </li>

                        <?php if(Auth::user()->user_status == '0'): ?>
                                <li class="disabled">
                                <?php else: ?>
                                <li>
                            <?php endif; ?>
                            <a href="<?php echo e(url('vendors/buyerregister')); ?>"
                                class="menu-lists <?php if($page == 'buyerregister'){ ?> active <?php } ?>">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-13.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    Register with Buyer <span
                                        class="counts <?php if($resvendorcount['buyerslist']==0): ?> zerocount <?php endif; ?>"><?php echo e($resvendorcount['buyerslist']); ?></span>
                                </div>
                            </a>
                            </li>

                            <?php if(Auth::user()->user_status == '0'): ?>
                            <li class="disabled">
                            <?php else: ?>
                            <li class="nav-item dropdown">
                        <?php endif; ?>
                        <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                            href="#vendor_productss" role="button" aria-expanded="true"
                            aria-controls="vendor_productss">
                            <div class="sideIc">
                                <img src="<?php echo e(url('assets/images/icons/ic-10.png')); ?>">
                            </div>
                            <div class="menu-title">
                                Vendor Products
                            </div>
                        </a>
                        <ul <?php if($page == 'manufacturereproducts'){ ?>class="collapsed"
                            <?php } elseif($page == 'requestcategory'){ ?>class="collapsed"<?php } elseif($page == 'requestmanufacturesproducts'){ ?>class="collapsed"<?php } elseif($page == 'requestproduct'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                            id="vendor_productss">

                            <li class="nav-item" <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>>
                                <a href="<?php echo e(url('manufacturers/requestcategory')); ?>"
                                    class="menu-lists <?php if($page == 'requestcategory'){ ?> active <?php } ?>">
                                    <div class="menu-title"> Request Category</div>
                                </a>
                            </li>
                            <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="<?php echo e(url('manufacturers/requestproduct')); ?>"
                                    class="menu-lists <?php if($page == 'requestproduct'){ ?> active <?php } ?>">
                                    <div class="menu-title"> Request Master Product</div>
                                </a>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo e(url('/requestmanufacturesproducts')); ?>"
                                    class="menu-lists <?php  if($page == 'requestmanufacturesproducts'){ ?> active <?php  } ?>">
                                    <div class="menu-title"> Request Manufacturer Product</div>
                                </a>
                            </li>

                            <li class="nav-item">
                                <a href="<?php echo e(url('/vendors/products')); ?>"
                                    class="menu-lists <?php if($page == 'manufacturereproducts'){ ?> active <?php } ?>">
                                    <div class="menu-title"> Manage products</div>
                                </a>
                            </li>
                            
                           
                        </ul>

                            <?php if(Auth::user()->user_status == '0'): ?>
                                <li class="disabled">
                                <?php else: ?>
                                <li class="nav-item dropdown">
                            <?php endif; ?>
                            <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                href="#vendor_products" role="button" aria-expanded="true"
                                aria-controls="vendor_products">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-10.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    Purchase Order
                                </div>
                            </a>
                            <ul <?php if($page == 'Addpbg'){ ?> class="collapsed"
                               class="collapsed" <?php }else { ?>class="collapse"<?php }  ?>
                                id="vendor_products">
                                <li class="nav-item">
                                    <a href="<?php echo e(url('/vendors/add_pbg')); ?>"
                                        class="menu-lists <?php if($page == 'Addpbg'){ ?> active <?php } ?>">
                                        <div class="menu-title">Order Summary </div>
                                    </a>
                                </li>
                                <li class="nav-item">
                                    <a href="<?php echo e(url('vendors/inspection_date_process_pending')); ?>"
                                        class="menu-lists <?php if($page == 'Inspectiondateprocess'){ ?> active <?php } ?>">
                                        <div class="menu-title">Inspection Date Approvals</div>
                                    </a>
                                </li>
                                <li class="nav-item">
                                    <a href="<?php echo e(url('vendors/accounts_vendor')); ?>"
                                        class="menu-lists <?php if($page == 'accounts_vendor'){ ?> active <?php } ?>">
                                        <div class="menu-title">Accounts Summary</div>
                                    </a>
                                </li>
                            </ul>
                            </li>
                            <?php if(Auth::user()->user_status == '0'): ?>
                                <li class="disabled">
                                <?php else: ?>
                                <li>
                            <?php endif; ?>
                            <a href="<?php echo e(url('vendors/quoterequests')); ?>"
                                class="menu-lists <?php if($page == 'quoterequests'){ ?> active <?php } ?>">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-02.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    New requests<span class="counts <?php if($resvendorcount['quoterequests']==0): ?> zerocount <?php endif; ?>"><?php echo e($resvendorcount['quoterequests']); ?></span>
                                </div>
                            </a>
                            </li>
                            <?php if(Auth::user()->user_status == '0'): ?>
                                <li class="disabled">
                                <?php else: ?>
                                <li>
                            <?php endif; ?>
                            <a href="<?php echo e(url('/vendors/myquotes')); ?>"
                                class="menu-lists <?php if($page == 'myquotes'){ ?> active <?php } ?>">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-03.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    My quotes<span class="counts <?php if($resvendorcount['myquotes']==0): ?> zerocount <?php endif; ?>"><?php echo e($resvendorcount['myquotes']); ?></span>
                                </div>
                            </a>
                            </li>
                            <?php
                                $res = App\Helpers\CustomHelper::side_menu_order_count_vendor();
                                //print_r($res['ordercount']);
                            ?>
                            <?php if(Auth::user()->user_status == '0'): ?>
                                <li class="disabled">
                                <?php else: ?>
                                <li>
                            <?php endif; ?>
                            <a href="<?php echo e(url('vendors/orderlists')); ?>"
                                class="menu-lists <?php if($page == 'orderlist'){ ?> active <?php } ?>">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-04.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    Orders <span class="counts <?php if($resvendorcount['ordercount']==0): ?> zerocount <?php endif; ?> "><?php echo e($resvendorcount['ordercount']); ?></span>
                                </div>
                            </a>
                            </li>
                           
                            </li>
                            <?php if(Auth::user()->user_status == '0'): ?>
                                <!--	<li class="disabled"> -->
                            <?php else: ?>
                                <!--    <li> -->
                            <?php endif; ?>
                            <!--   <a href="<?php echo e(url('/vendors/quality_manage')); ?>" class="menu-lists <?php if($page == 'Quality manage'){ ?> active <?php } ?>">
                        <div class="sideIc">
                            <img src="<?php echo e(url('assets/images/icons/ic-11.png')); ?>">
                        </div>
                        <div class="menu-title">
                            Quality Management
                        </div>
                    </a>
                </li>-->
                            <?php if(Auth::user()->user_status == '0'): ?>
                                <!--	<li class="disabled"> -->
                            <?php else: ?>
                                <!--   <li> -->
                            <?php endif; ?>
                            <!--    <a href="<?php echo e(url('/vendors/serviceengregistration')); ?>" class="menu-lists <?php if($page == 'Quality manage'){ ?> active <?php } ?>">
                        <div class="sideIc">
                            <img src="<?php echo e(url('assets/images/icons/ic-11.png')); ?>">
                        </div>
                        <div class="menu-title">
                            Add Service Engineer
                        </div>
                    </a>
                </li>-->
                            <?php if(Auth::user()->user_status == '0'): ?>
                                <li class="disabled">
                                <?php else: ?>
                                <li class="nav-item dropdown">
                            <?php endif; ?>
                            <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                href="#quality_manage" role="button" aria-expanded="true"
                                aria-controls="quality_manage">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-11.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    Quality Management <span
                                        class="counts <?php if($resvendorcount['complaintcount']==0): ?> zerocount <?php endif; ?>"><?php echo e($resvendorcount['complaintcount']); ?></span>
                                </div>
                            </a>
                            <ul <?php if($page == 'Quality manage'){ ?> class="collapsed"
                                <?php }elseif($page == 'Sevice engg registration'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                id="quality_manage">
                                <li class="nav-item">
                                    <a href="<?php echo e(url('/vendors/quality_manage')); ?>"
                                        class="menu-lists <?php if($page == 'Quality manage'){ ?> active <?php } ?>">
                                        <div class="menu-title">
                                            Quality Management
                                        </div>
                                    </a>
                                </li>
                                <li class="nav-item">
                                    <a href="<?php echo e(url('/vendors/serviceengregistration')); ?>"
                                        class="menu-lists <?php if($page == 'Sevice engg registration'){ ?> active <?php } ?>">
                                        <div class="menu-title">
                                            Add Service Engineer
                                            <!--<span class="counts"><?php echo e($resvendorcount['serviceenggcount']); ?></span>-->
                                        </div>
                                    </a>
                                </li>
                            </ul>
                            </li>
                            
                            
                            <?php if(Auth::user()->user_status == '0'): ?>
                                <li class="disabled">
                                <?php else: ?>
                                <li>
                            <?php endif; ?>
                        <?php elseif(Auth::user()->user_type == '3'): ?>
                            <?php
                                $resvendorcount = App\Helpers\CustomHelper::sidebarVendorcount();
                            ?>
                            <ul class="nav">
                                <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                    <a href="<?php echo e(url('/manufacturers/dashboard')); ?>"
                                        class="menu-lists <?php if($page == 'dashboard'){ ?> active <?php } ?>">
                                        <div class="sideIc">
                                            <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                        </div>
                                        <div class="menu-title">
                                            My Dashboard
                                        </div>
                                    </a>
                                </li>
                                <?php if(Auth::user()->user_status == '0'): ?>
                                    <li class="disabled">
                                    <?php else: ?>
                                    <li>
                                <?php endif; ?>

                                <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                    <a href="<?php echo e(url('/howtoworks')); ?>"
                                        class="menu-lists <?php if($page == 'howtoworks'){ ?> active <?php } ?>">
                                        <div class="sideIc">
                                            <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                        </div>
                                        <div class="menu-title">
                                            How to Works
                                        </div>
                                    </a>
                                </li>
                                <li class="nav-item dropdown <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                    <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                        href="#padmin" role="button" aria-expanded="true"
                                        aria-controls="purchaseadmin">
                                        <div class="sideIc">
                                            <img src="<?php echo e(url('assets/images/icons/ic-07.png')); ?>">
                                        </div>
                                        <div class="menu-title">
                                           Get Certified
                                        </div>
                                    </a>
                                    <ul <?php if(($page == 'PurchaseOrder')||($page=='Ordersummary')){ ?> class="collapsed"
                                        <?php }elseif($page == 'PurchaseOrder'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                        id="padmin">
										<li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>" >
											<a href="https://www.meddbot.com/lms/?user_id=<?php echo e(Auth::user()->id); ?>&user_role=user&add_course=yes"
												target="_blank"  class="menu-lists <?php if($page == 'course'){ ?> active <?php } ?>">
												<div class="menu-title">
												   Create Courses
												</div>
											</a>
										</li>
                                        <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>" >
                                            <a href="<?php echo e(url('/courses')); ?>"
                                                class="menu-lists <?php if($page == 'course'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                   Courses
                                                </div>
                                            </a>
                                        </li>
                                        <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                            <a href="<?php echo e(url('/certificates')); ?>"
                                                class="menu-lists <?php if($page == 'certificate'){ ?> active <?php } ?>">
                                                <div class="menu-title">
                                                   Certificates
                                                </div>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                                <?php if(Auth::user()->user_status == '0'): ?>
                                <li class="disabled">
                                <?php else: ?>
                                <li class="nav-item dropdown ">
                            <?php endif; ?>
                            <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                href="#register_manuf" role="button" aria-expanded="true"
                                aria-controls="Registermanufacturer">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-12.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    Register with manufacturer
                                </div>
                            </a>
                            <ul <?php if($page == 'dealerregistration'){ ?> class="collapsed"
                                <?php }elseif($page == 'manufacturerregister'){ ?>class="collapsed"<?php }elseif($page == 'manufacturer'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                                id="register_manuf">
                                <li class="nav-item">
                                    <a href="<?php echo e(url('vendors/dealerregistration')); ?>"
                                        class="menu-lists <?php if($page == 'dealerregistration'){ ?> active <?php } ?>">
                                        <div class="menu-title">Add Manufacturer</div>
                                    </a>
                                <li class="nav-item">
                                    <a href="<?php echo e(url('vendors/manufacturerregister')); ?>"
                                        class="menu-lists <?php if($page == 'manufacturerregister'){ ?> active <?php } ?>">
                                        <div class="menu-title">Add Manufacturer To The Database</div>
                                    </a>
                                </li>
                                <li class="nav-item">
                                    <a href="<?php echo e(url('vendors/manufacturer')); ?>"
                                        class="menu-lists <?php if($page == 'manufacturer'){ ?> active <?php } ?>">
                                        <div class="menu-title"> Manufacturers </div>
                                    </a>
                                </li>
                            </ul>
                            </li>

                            <li <?php if(Auth::user()->user_status==0){?>class="disabled"<?php }?>>
                                <a href="<?php echo e(url('manufacturers/dealerapprovals')); ?>"
                                    class="menu-lists <?php if($page == 'dealerapprovals'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/dashboard.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Dealers And Manufacturers  Approvals
                                    </div>
                                </a>
                            </li>

                            <?php if(Auth::user()->user_status == '0'): ?>
                            <li class="disabled">
                            <?php else: ?>
                            <li>
                            <?php endif; ?>
                        <a href="<?php echo e(url('vendors/buyerregister')); ?>"
                            class="menu-lists <?php if($page == 'buyerregister'){ ?> active <?php } ?>">
                            <div class="sideIc">
                                <img src="<?php echo e(url('assets/images/icons/ic-13.png')); ?>">
                            </div>
                            <div class="menu-title">
                                Register with Buyer <span
                                    class="counts <?php if($resvendorcount['buyerslist']==0): ?> zerocount <?php endif; ?>"><?php echo e($resvendorcount['buyerslist']); ?></span>
                            </div>
                        </a>
                        </li>

                        <?php if(Auth::user()->user_status == '0'): ?>
                        <li class="disabled">
                        <?php else: ?>
                        <li class="nav-item dropdown">
                    <?php endif; ?>
                    <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                        href="#vendor_products" role="button" aria-expanded="true"
                        aria-controls="vendor_products">
                        <div class="sideIc">
                            <img src="<?php echo e(url('assets/images/icons/ic-10.png')); ?>">
                        </div>
                        <div class="menu-title">
                            Manage Own Products
                        </div>
                    </a>
                    <ul <?php if($page == 'manufacturereproductsown'){ ?>class="collapsed"
                        <?php } elseif($page == 'requestcategory'){ ?>class="collapsed"<?php } elseif($page == 'products'){ ?>class="collapsed"<?php } elseif($page == 'requestproduct'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                        id="vendor_products">
                       
                        <li class="nav-item" <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>>
                            <a href="<?php echo e(url('manufacturers/requestcategory')); ?>"
                                class="menu-lists <?php if($page == 'requestcategory'){ ?> active <?php } ?>">
                                <div class="menu-title"> Request Category</div>
                            </a>
                        </li>
                        <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                            <a href="<?php echo e(url('manufacturers/requestproduct')); ?>"
                                class="menu-lists <?php if($page == 'requestproduct'){ ?> active <?php } ?>">
                                <div class="menu-title"> Request Master Product</div>
                            </a>
                        </li>
                        <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                            <a href="<?php echo e(url('/manufacturers/mproductslist')); ?>"
                                class="menu-lists <?php if($page == 'manufacturereproductsown'){ ?> active <?php } ?><?php if($page == 'products'){ ?> active <?php } ?>">
                                <div class="menu-title"> Manage products</div>
                            </a>
                        </li>
                    </ul>
                    </li>

                    <?php if(Auth::user()->user_status == '0'): ?>
                                <li class="disabled">
                                <?php else: ?>
                                <li class="nav-item dropdown">
                            <?php endif; ?>
                            <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                                href="#vendor_productss" role="button" aria-expanded="true"
                                aria-controls="vendor_productss">
                                <div class="sideIc">
                                    <img src="<?php echo e(url('assets/images/icons/ic-10.png')); ?>">
                                </div>
                                <div class="menu-title">
                                    Manufacturer Products
                                </div>
                            </a>
                            <ul <?php if($page == 'manufacturereproducts'){ ?>class="collapsed"
                                <?php }elseif($page == 'requestmanufacturesproducts'){ ?>class="collapsed"<?php } elseif($page == 'requeestproducts'){ ?>class="collapsed"<?php }  else { ?>class="collapse"<?php }  ?>
                                id="vendor_productss">

                                <li class="nav-item">
                                    <a href="<?php echo e(url('/vendors/products')); ?>"
                                        class="menu-lists <?php if($page == 'manufacturereproducts'){ ?> active <?php } ?>">
                                        <div class="menu-title"> Manage products</div>
                                    </a>
                                </li>
                                
                                <li class="nav-item">
                                    <a href="<?php echo e(url('/requestmanufacturesproducts')); ?>"
                                        class="menu-lists <?php  if($page == 'requestmanufacturesproducts'){ ?> active <?php  } ?>">
                                        <div class="menu-title"> Request Manufacturer Product</div>
                                    </a>
                                </li>

                                <li class="nav-item">
                                    <a href="<?php echo e(url('/newproductrequest')); ?>"
                                        class="menu-lists <?php  if($page == 'requeestproducts'){ ?> active <?php  } ?>">
                                        <div class="menu-title">New Product Requests</div>
                                    </a>
                                </li>

                            </ul>
                            </li>

                            <?php if(Auth::user()->user_status == '0'): ?>
                            <li class="disabled">
                            <?php else: ?>
                            <li class="nav-item dropdown">
                        <?php endif; ?>
                        <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                            href="#vendor_products1" role="button" aria-expanded="true"
                            aria-controls="vendor_products1">
                            <div class="sideIc">
                                <img src="<?php echo e(url('assets/images/icons/ic-10.png')); ?>">
                            </div>
                            <div class="menu-title">
                                Purchase Order
                            </div>
                        </a>
                        <ul <?php if($page == 'Addpbg'){ ?> class="collapsed"
                           class="collapsed" <?php }else { ?>class="collapse"<?php }  ?>
                            id="vendor_products1">
                            <li class="nav-item">
                                <a href="<?php echo e(url('/vendors/add_pbg')); ?>"
                                    class="menu-lists <?php if($page == 'Addpbg'){ ?> active <?php } ?>">
                                    <div class="menu-title">Order Summary </div>
                                </a>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo e(url('vendors/inspection_date_process_pending')); ?>"
                                    class="menu-lists <?php if($page == 'Inspectiondateprocess'){ ?> active <?php } ?>">
                                    <div class="menu-title">Inspection Date Approvals</div>
                                </a>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo e(url('vendors/accounts_vendor')); ?>"
                                    class="menu-lists <?php if($page == 'accounts_vendor'){ ?> active <?php } ?>">
                                    <div class="menu-title">Accounts Summary</div>
                                </a>
                            </li>
                        </ul>
                        </li>


                        <?php if(Auth::user()->user_status == '0'): ?>
                        <li class="disabled">
                        <?php else: ?>
                        <li class="nav-item dropdown">
                    <?php endif; ?>
                    <a class="nav-link dropdown-toggle menu-lists" data-toggle="collapse"
                        href="#quality_manage" role="button" aria-expanded="true"
                        aria-controls="quality_manage">
                        <div class="sideIc">
                            <img src="<?php echo e(url('assets/images/icons/ic-11.png')); ?>">
                        </div>
                        <div class="menu-title">
                            Quality Management <span
                                class="counts <?php if($resvendorcount['complaintcount']==0): ?> zerocount <?php endif; ?>"><?php echo e($resvendorcount['complaintcount']); ?></span>
                        </div>
                    </a>
                    <ul <?php if($page == 'Quality manage'){ ?> class="collapsed"
                        <?php }elseif($page == 'Sevice engg registration'){ ?>class="collapsed"<?php } else { ?>class="collapse"<?php }  ?>
                        id="quality_manage">
                        <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                            <a href="<?php echo e(url('/manufacturers/quality_manage')); ?>"
                                class="menu-lists <?php if($page == 'Quality manage'){ ?> active <?php } ?>">
                                <div class="menu-title">
                                    Quality Management
                                </div>
                            </a>
                        </li>
                        <li class="nav-item <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>" >
                            <a href="<?php echo e(url('/manufacturers/serviceengregistration')); ?>"
                                class="menu-lists <?php if($page == 'Sevice engg registration'){ ?> active <?php } ?>">
                                <div class="menu-title">
                                    Add Service Engineer
                                    <!--<span class="counts"><?php echo e($resvendorcount['serviceenggcount']); ?></span>-->
                                </div>
                            </a>
                        </li>
                    </ul>
                    </li>
                    <li <?php if(Auth::user()->user_status==0){?>class="disabled"<?php }?>>
                        <a href="<?php echo e(url('/manufacturers/dealerlist')); ?>"
                            class="menu-lists <?php if($page == 'dealerlist'){ ?> active <?php  } ?>">
                            <div class="sideIc">
                                <img src="<?php echo e(url('assets/images/icons/dashboard.png')); ?>">
                            </div>
                            <div class="menu-title">
                                Dealers
                            </div>
                        </a>
                    </li>

                                <li class="<?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                <a href="<?php echo e(url('manufacturers/quoterequests')); ?>"
                                    class="menu-lists <?php if($page == 'quoterequests'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-01.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        New requests<span
                                            class="counts <?php if($resvendorcount['quoterequests']==0): ?> zerocount <?php endif; ?> "><?php echo e($resvendorcount['quoterequests']); ?></span>
                                    </div>
                                </a>
                                </li>
                                <?php if(Auth::user()->user_status == '0'): ?>
                                    <li class="disabled">
                                    <?php else: ?>
                                    <li>
                                <?php endif; ?>
                                <a href="<?php echo e(url('manufacturers/manage_vendorproducts')); ?>"
                                    class="menu-lists <?php if($page == 'managevenproducts'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-02.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Manage Vendor Products<span
                                            class="counts <?php if($resvendorcount['venproduct_request']==0): ?> zerocount <?php endif; ?>"><?php echo e($resvendorcount['venproduct_request']); ?></span>
                                    </div>
                                </a>
                                </li>
                                <?php if(Auth::user()->user_status == '0'): ?>
                                    <li class="disabled">
                                    <?php else: ?>
                                    <li>
                                <?php endif; ?>
                                <a href="<?php echo e(url('/manufacturers/myquotes')); ?>"
                                    class="menu-lists <?php if($page == 'myquotes'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-03.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        My quotes<span class="counts <?php if($resvendorcount['myquotes']==0): ?> zerocount <?php endif; ?>"><?php echo e($resvendorcount['myquotes']); ?></span>
                                    </div>
                                </a>
                                </li>
                                <?php if(Auth::user()->user_status == '0'): ?>
                                    <li class="disabled">
                                    <?php else: ?>
                                    <li>
                                <?php endif; ?>
                                <a href="<?php echo e(url('manufacturers/orderlists')); ?>"
                                    class="menu-lists <?php if($page == 'orderlist'){ ?> active <?php } ?>">
                                    <div class="sideIc">
                                        <img src="<?php echo e(url('assets/images/icons/ic-04.png')); ?>">
                                    </div>
                                    <div class="menu-title">
                                        Orders <span class="counts <?php if($resvendorcount['ordercount']==0): ?> zerocount <?php endif; ?>"><?php echo e($resvendorcount['ordercount']); ?></span>
                                    </div>
                                </a>
                                </li>

                                <li <?php if(Auth::user()->user_status==0){?>class="disabled"<?php }?>>
                                    <a href="<?php echo e(url('/manufacturers/dealer_quotes')); ?>"
                                        class="menu-lists <?php if($page == 'dealer_quotes'){ ?> active <?php  } ?>">
                                        <div class="sideIc">
                                            <img src="<?php echo e(url('assets/images/icons/dashboard.png')); ?>">
                                        </div>
                                        <div class="menu-title">
                                            My dealer quotes
                                        </div>
                                    </a>
                                </li>
                            
                                </li>
                                <?php if(Auth::user()->user_status == '0'): ?>
                                    <li class="disabled">
                                    <?php else: ?>
                                    <li>
                                <?php endif; ?>
                                </li>
                                <li class="mobile-show <?php if(Auth::user()->user_status == '0'): ?> disabled <?php endif; ?>">
                                    <a href="#" class="menu-lists ">
                                        <div class="sideIc">
                                            <i class="fas fa-user-alt" aria-hidden="true"></i>
                                        </div>
                                        <div class="menu-title">
                                            Profile & Setting
                                        </div>
                                    </a>
                                </li>
                                <li class="mobile-show">
                                    <a href="<?php echo e(url('/logout')); ?>" class="menu-lists ">
                                        <div class="sideIc">
                                            <i class="fas fa-sign-out-alt" aria-hidden="true"></i>
                                        </div>
                                        <div class="menu-title">
                                            Logout
                                        </div>
                                    </a>
                                </li>
                            </ul>
                    <?php endif; ?>
                <?php endif; ?>
            </div>
        </div>
    </div>
<?php /**PATH /home/meddbot/public_html/resources/views/include/header.blade.php ENDPATH**/ ?>