<header class="sticky-top">
  <div class="header-left">
      <div class="menu-icon-f">
     <div class="menu-icon" > 
         <span></span>
         <span></span>
         <span></span>
      </div>
  </div>
  
  </div>
  
<input name="_token" type="hidden" class="token_user" value="<?php echo e(csrf_token()); ?>">
  <div class="not-msg-user d-flex align-items-center">
      
      <div class="notifications chat " id="chat" style="    margin-right: 15px;">
        <?php
          $res  			= App\Helpers\CustomHelper::message();
        ?>
          <div class="dropdown">
              <span class="count green" ><?php echo e($res['messagecount']); ?></span>
            <button class="btn btn-secondary dropdown-toggle user-dropdown" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
               <i class="fa fa-comment-o" aria-hidden="true"></i>
            </button>
            <ul class="dropdown-menu dropdown-menu2" aria-labelledby="dropdownMenuButton1">
              <h5 class="Not-hd">Messages</h5>
                <div class="scrollarea">
                    <?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 if($mlist->type=='groupbuyerrequest_reject'): ?>
                          <?php
                            $pname  			= App\Helpers\CustomHelper::product_name($mlist->product_id);
                          ?>
                    <li><a class="dropdown-item <?php if($mlist->read_status==0){echo "active";}?>" href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/assign_buyer')"><?php if(!empty($mlist->pro_pic)): ?>
										 <img class="user-icon" src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
									 <?php else: ?>
										<img class="user-icon" src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
									 <?php endif; ?><p>The buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b>  has Rejected your request <b></b></p></a></li>
                     <?php endif; ?>

                     <?php if($mlist->type=='groupbuyerrequest_approve'): ?>
                          <?php
                            $pname  			= App\Helpers\CustomHelper::product_name($mlist->product_id);
                          ?>
                    <li><a class="dropdown-item <?php if($mlist->read_status==0){echo "active";}?>" href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/dashboard')"><?php if(!empty($mlist->pro_pic)): ?>
										 <img class="user-icon" src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
									 <?php else: ?>
										<img class="user-icon" src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
									 <?php endif; ?><p>The buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b>  has Approved your request <b></b></p></a></li>
                     <?php endif; ?>
                     
                     
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                    </div>
            </ul>
          </div>
      </div>
       <div class="notifications user-profile">
          <div class="dropdown ">

            <div class="name-company">
              <span><?php echo e(ucfirst(Auth::user()->name)); ?></span>
          <span>[ <?php if(Auth::user()->user_type=='3'): ?> Manufacturer <?php elseif(Auth::user()->user_type=='2'): ?> Vendor <?php else: ?> Group Buyer <?php endif; ?> ]</span>
          </div>
            <button class="btn btn-secondary dropdown-toggle user-dropdown" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
<!--              <img src="assets/img/user.jpg">-->
<!--                <img src="<?php echo e(url('assets/images/icons/dashboard.png')); ?>">-->
                <i class="far fa-user user-i" aria-hidden="true"></i>
            </button>
            <ul class="dropdown-menu user-drp" aria-labelledby="dropdownMenuButton1">
              
              
             <li> <a lass="dropdown-item" href="<?php echo e(url('/userprofile')); ?>"><i class="fas fa-user-alt" aria-hidden="true"></i> Profile
                & settings</a></li>
              <li><a class="dropdown-item" href="<?php echo e(url('/logout')); ?>"><i class="fa fa-sign-out" aria-hidden="true"></i>Logout</a></li>
            
            </ul>
          </div>
      </div>
  </div>
</header><?php /**PATH /home/meddbot/public_html/resources/views/include/header_new.blade.php ENDPATH**/ ?>