
<?php if($mlist->type == 'demo_completed_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/myquotes')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/myquotes')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has completed demo for the
                product <b><?php echo e(ucfirst($pname)); ?></b>
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
    <?php elseif($mlist->type == 'assigned_vendor'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/buyer_request')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/buyer_request')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The<b> <?php echo e(ucfirst($mlist->name)); ?></b> assigned the  
                product <b><?php echo e(ucfirst($pname)); ?></b>to you 
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>

    <?php elseif($mlist->type == 'request_manuproducts'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'newproductrequest')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'newproductrequest')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The <b> <?php echo e(ucfirst($mlist->name)); ?></b> has requested to add new product 
             request <b><?php echo e(ucfirst($pname)); ?></b>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>

    <?php elseif($mlist->type == 'assigned_vendor_reject'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
   
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/buyer_request')">

    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>

            
            <p>The Buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has rejected for the maintenance of the product
                 <b><?php echo e(ucfirst($pname)); ?></b>to you 
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>

    <?php elseif($mlist->type == 'assigned_vendor_approve'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
   
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/buyer_request')">

    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>

            
            <p>The Vendor<b> <?php echo e(ucfirst($mlist->name)); ?></b> has approved for the maintenance of the product
                 <b><?php echo e(ucfirst($pname)); ?></b>to you 
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>

<?php elseif($mlist->type == 'inspection_date_reject'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/equipment_status/<?php echo e($mlist->common); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The inspection date of the product <b><?php echo e(ucfirst($mlist->msg)); ?></b> with equipment id  <?php echo e($mlist->common); ?> is rejected 
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'store_send_bio'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/received_products_biomedical')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">

                <p>The product <b><?php echo e(ucfirst($mlist->common2)); ?> </b>with equipment id <?php echo e($mlist->common); ?> is sent
               
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>


    <?php elseif($mlist->type == 'app_consignee_receive'): ?>

    <?php
    $pname = App\Helpers\CustomHelper::product_name($mlist->common2);
    ?>

    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/inspection_status_pass')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                
                <p> The equipment <b><?php echo e(ucfirst($pname)); ?></b> with id <?php echo e($mlist->common); ?>  is received.
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>

    <?php elseif($mlist->type == 'groupbuyerrequest_reject'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/assign_buyer')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b>  has Rejected your request <b></b></p>
               
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>

    <?php elseif($mlist->type == 'request_manuproducts_approve'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'requestmanufacturesproducts')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The Manufacturer<b> <?php echo e(ucfirst($mlist->name)); ?></b>  has Approved your new product request <b></b></p>
               
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>

    <?php elseif($mlist->type == 'request_manuproducts_reject'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'requestmanufacturesproducts')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The Manufacturer<b> <?php echo e(ucfirst($mlist->name)); ?></b>  has Rejected your new product request <b></b></p>
               
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>




    <?php elseif($mlist->type == 'proc_send_consignee'): ?>

    <?php
    $pname = App\Helpers\CustomHelper::product_name($mlist->common2);
?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/inspection_details/<?php echo e($mlist->common); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
               
                <p>The equipment <b><?php echo e(ucfirst($pname)); ?></b> with id <?php echo e($mlist->common); ?>  is dispatched 
               
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>





    <?php elseif($mlist->type == 'groupbuyerrequest_approve'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/dashboard')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b>  has Approved your request <b></b></p>
               
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>


<?php elseif($mlist->type == 'remind_bio_medical'): ?>

<?php
$pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/prerequisites_order')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>Please confirm all pre-requisites are ready for the <?php echo e(ucfirst($pname)); ?> with order id
                    <b><?php echo e($mlist->common); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'close_complaint_accounts'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/manage_payments_pending')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <?php
                $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
                ?>

                <p>The product <b><?php echo e(ucfirst($pname)); ?></b> with equipment id <?php echo e($mlist->common); ?> under order id <?php echo e($mlist->common2); ?> is succesfully installed. Please proceed with the payment</p>
               
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'send_to_gm_proc'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/manage_payments_pending')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <?php
                $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
                ?>

                <p>The price details for the  product <b><?php echo e(ucfirst($pname)); ?></b> with equipment id <?php echo e($mlist->common); ?> under order id <?php echo e($mlist->common2); ?> is shared 
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'payment_gm_reject'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/manage_payments_rejected');reject()">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <?php
                $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
                ?>
                <p>The price details for the  product <b><?php echo e(ucfirst($pname)); ?></b> with equipment id <?php echo e($mlist->common2); ?> under order id <?php echo e($mlist->common); ?> is rejected </p>

                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'payment_gm_approve'): ?>
    <?php if($mlist->msg == 'account'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/account_summary');approves()">
        <?php else: ?>
            <a href="#"
                onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/accountdetails/<?php echo e($mlist->common); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
            ?>
        
            <p>The price details for the  product <b><?php echo e(ucfirst($pname)); ?></b> with equipment id <?php echo e($mlist->common2); ?> under order id <?php echo e($mlist->common2); ?> is approved</p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'inspection_date_approved'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/equipment_status/<?php echo e($mlist->common); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The inspection date of  the product <b><?php echo e(ucfirst($mlist->msg)); ?></b> with equipment id  <?php echo e($mlist->common); ?> is approved  </p>
                
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'inspection_date_submit'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/inspection_date_process_pending')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The <b><?php echo e(ucfirst($mlist->msg)); ?> </b> with Equipment id <?php echo e($mlist->common); ?> has requested <?php echo e($mlist->common2); ?> for inspection               
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'change_date_approve'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/po_products/<?php echo e($mlist->common); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The GM <?php echo e(ucfirst($mlist->name)); ?> has approved the extension date for
                    the order with id
                    <b><?php echo e($mlist->common); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'change_date_reject'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/po_products/<?php echo e($mlist->common); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The GM <?php echo e(ucfirst($mlist->name)); ?> has rejected the extension date for
                    the order with id
                    <b><?php echo e($mlist->common); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
    <?php elseif($mlist->type == 'app_receive_product_bio'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/received_products_biomedical')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The product <b><?php echo e(ucfirst($mlist->msg)); ?> </b>with the equipment id <?php echo e($mlist->common2); ?> under the order id <?php echo e($mlist->common); ?> has been received by the department
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>

   
<?php elseif($mlist->type == 'app_receive_product_bio'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/po_products/<?php echo e($mlist->common); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The <b><?php echo e(ucfirst($mlist->msg)); ?> </b>with equipment id <?php echo e($mlist->common2); ?> under order id <?php echo e($mlist->common); ?> is recieved
                
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'app_receive_product_storeweb'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/equipment_status/<?php echo e($mlist->common2); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The <b><?php echo e(ucfirst($mlist->msg)); ?> </b>with equipment id <?php echo e($mlist->common2); ?> under order id <?php echo e($mlist->common); ?> is recieved in store.
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>

    <?php elseif($mlist->type == 'app_receive_product_vendor'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/equipment_status/<?php echo e($mlist->common2); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The <b><?php echo e(ucfirst($mlist->msg)); ?> </b>with equipment id <?php echo e($mlist->common2); ?> under order id <?php echo e($mlist->common); ?> is recieved in store
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>

    <?php elseif($mlist->type == 'inspection_pass_store'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/inspection_status_pass')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
              <p>The equipment <b><?php echo e(ucfirst($mlist->common2)); ?></b> with the id <?php echo e($mlist->common); ?> has successfully passed inspection</p>
               
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'inspection_pass'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/inspection_date_process_approved')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The Store <?php echo e(ucfirst($mlist->name)); ?> has completed the inspection for
                    the equipment with id
                    <b><?php echo e($mlist->common); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'change_date_approve_bio'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/prerequisites_order')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The GM <?php echo e(ucfirst($mlist->name)); ?> has changed the extension date for
                    the order with id
                    <b><?php echo e($mlist->common); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>

    <?php elseif($mlist->type == 'pre_requisites_pending_vendor'): ?>


    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/po_products/<?php echo e($mlist->common2); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The prerequisite <b><?php echo e(ucfirst($mlist->msg)); ?></b> items of <b><?php echo e(ucfirst($mlist->common)); ?></b>  under order id <?php echo e($mlist->common2); ?> is pending
                
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>


<?php elseif($mlist->type == 'pre_requisites_pending'): ?>


    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/inspection_status_pass')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The prerequisite <b><?php echo e(ucfirst($mlist->msg)); ?></b> items of <b><?php echo e(ucfirst($mlist->common)); ?></b>  under order id <?php echo e($mlist->common2); ?> is pending
                
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>

    <?php elseif($mlist->type == 'pre_requisites_ready_vendor'): ?>


    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/po_products/<?php echo e($mlist->common); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>All prerequisite items of <b><?php echo e(ucfirst($mlist->common2)); ?></b>  with order id <b><?php echo e($mlist->common); ?></b> are ready
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'pre_requisites_ready'): ?>


    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/inspection_status_pass')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>All prerequisite items of <b><?php echo e(ucfirst($mlist->common2)); ?></b>  with order id <b><?php echo e($mlist->common); ?></b> are ready
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'add_prerequisites'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/prerequisites_order')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>

                <p> The prerequisites of<b> <?php echo e(ucfirst($mlist->common2)); ?></b> under order <b><?php echo e($mlist->common); ?></b> are added
                
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'change_date'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/extensiondate_process_pending')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The Vendor <?php echo e(ucfirst($mlist->name)); ?> has requested an extension date
                    for the order with id
                    <b><?php echo e($mlist->common); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'po_generatechellan'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/equipment_status/<?php echo e($mlist->common); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>A challan for <b><?php echo e(ucfirst($mlist->msg)); ?></b> with Equipment id <?php echo e($mlist->common); ?> has been generated. 
               
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'payment_update'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/payment_history/<?php echo e($mlist->common); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <p>The payment for order id <?php echo e($mlist->common); ?> is successfully updated.
               
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'pbg_reject_account'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/add_pbg')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The  submitted PBG details for purchase order <b><?php echo e($mlist->common); ?></b> has been rejected.       
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'pbg_approve_account'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/add_pbg')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The PBG details for your purchase order <b><?php echo e($mlist->common); ?></b> has been approved.Please add the pre-requisites 
                 
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'pbg_update'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/manage_pbg')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>

                <p>The PBG details for purchase order <b><?php echo e($mlist->common); ?></b> has been updated 
               
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'pbg_send'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/manage_pbg')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>Thank you! The PBG details for purchase order number <b><?php echo e($mlist->common); ?></b>  has been successfully submitted. 
               
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
    <?php elseif($mlist->type == 'pa_ordersummary_cancel'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/order_summary')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The  purchase order number 
                    <b><?php echo e($mlist->common); ?></b> has been cancelled.
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>



<?php elseif($mlist->type == 'gm_ordersummary'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/order_summary')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The  purchase order number 
                    <b><?php echo e($mlist->common); ?></b> has been created.
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>


<?php elseif($mlist->type == 'po_productstatus'): ?>

<?php
$pname = App\Helpers\CustomHelper::product_name($mlist->msg);
?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/po_products/<?php echo e($mlist->common); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
              
                <p> The order status of product  <b><?php echo e(ucfirst($pname)); ?></b> under order id <?php echo e($mlist->common); ?> has been updated.
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'pa_ordersummary_reject'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/order_summary_rejected')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>  The purchase order number
                    <b><?php echo e($mlist->common); ?></b>  has been rejected! 
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'gm_ordersummary_update'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/order_summary')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The purchase order 
                    <b><?php echo e($mlist->common); ?></b> has been updated! 
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'pa_ordersummary_approved'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/order_summary_approved')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The purchase order number <b><?php echo e($mlist->common); ?></b>  has been approved
                
                    
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'pa_ordersummary_addpbg'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/add_pbg')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>Please provide your bank details so that your purchase order <b><?php echo e($mlist->common); ?></b> can be processed.
             
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'preventive'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php if($mlist->common == 'buyer'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/complaint_status')">
        <?php else: ?>
            <a href="#"
                onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p><?php echo e(ucfirst($mlist->msg)); ?><b> <?php echo e(ucfirst($mlist->name)); ?></b> Preventive
                Maintenance for <b><?php echo e(ucfirst($pname)); ?></b> is due on
                <?php echo e(date('d-m-Y', strtotime($mlist->reason))); ?>

            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'venprd_reject_manu'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/vendorproductslist/')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The Manufacturer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has rejected your
                    product request <b><?php echo e(ucfirst($pname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'venprd_approve_manu'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/vendorproductslist/')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The Manufacturer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has approved your
                    product request <b><?php echo e(ucfirst($pname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'groupbuyerrequest'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/groupbuyerrequest/')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p><b> <?php echo e(ucfirst($mlist->name)); ?></b> has sent a request
                    <b><?php echo e(ucfirst($pname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'venprd_approve'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/manage_vendorproducts/')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The vendor <b> <?php echo e(ucfirst($mlist->name)); ?></b> has sent a product
                    request
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'installation_request'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
          <p> An installation request for product<b><?php echo e(ucfirst($pname)); ?></b> with equipment id <?php echo e($mlist->common); ?> is raised

          
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'deactivate_vendorproducts'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/vendorproductslist')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <?php
                    $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
                ?>
                <p>The product <b><?php echo e($pname); ?></b> is deactivated by the admin
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'manu_reject_dealerrequest'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/manufacturer')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The Manufacturer <b> <?php echo e(ucfirst($mlist->name)); ?></b> has rejected your
                    dealership request
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>

    


    <?php elseif($mlist->type == 'manu_remove'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/manufacturer')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The Manufacturer <b> <?php echo e(ucfirst($mlist->name)); ?></b> has Removed your
                    dealership request
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'manu_aapprove_dealerrequest'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/manufacturer')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The Manufacturer <b> <?php echo e(ucfirst($mlist->name)); ?></b> has approved your
                    dealership request
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'complaint_reopen_notification'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <p>The complaint for the product <b><?php echo e(ucfirst($pname)); ?></b>  with complaint id <?php echo e($mlist->complaint_id); ?> is reopened

            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'renewgomtdate_week_expired'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <a href="#"
        onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/registerproduct_details/<?php echo e($mlist->regproduct_id); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>Renewal date of the registration document for the product
                    <b><?php echo e(ucfirst($pname)); ?> </b> is about to expire.
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'warranty_week_expired'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if($mlist->reason == 'vendor'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/register_sold/<?php echo e($mlist->product_id); ?>/<?php echo e($mlist->buyer_id); ?>/<?php echo e($mlist->bidid); ?>')">
        <?php else: ?>
            <a href="#"
                onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/registerproduct_details/<?php echo e($mlist->regproduct_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The warranty of the product <b><?php echo e(ucfirst($pname)); ?> </b> is about to
                expire.
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'validationdate_week_expired'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if($mlist->reason == 'vendor'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/quality_manage')">
        <?php else: ?>
            <a href="#"
                onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/registerproduct_details/<?php echo e($mlist->regproduct_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The validation date of the product <b><?php echo e(ucfirst($pname)); ?> </b> is about
                to expire.
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'amc_cmc_week_expired'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if($mlist->reason == 'vendor'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/quality_manage')">
        <?php else: ?>
            <a href="#"
                onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/registerproduct_details/<?php echo e($mlist->regproduct_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The <?php echo e(strtoupper($mlist->common)); ?> of the product
                <b><?php echo e(ucfirst($pname)); ?> </b> is about to expire.
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'underobservation_expired' && $mlist->reason == 'vendor'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/quality_manage')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/quality_manage')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p> Observation period for the product <b><?php echo e(ucfirst($pname)); ?></b> has
                completed
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'underobservation_expired' && $mlist->reason == 'buyer'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/asset_management')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p> Observation period for the product <b><?php echo e(ucfirst($pname)); ?></b> has
                    completed .Please close the complaint
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'validationdate_expired'): ?>
    <?php if($mlist->common == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <a href="#"
        onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/registerproduct_details/<?php echo e($mlist->msg); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p> Validation date for the product <b><?php echo e(ucfirst($pname)); ?></b> has
                    expired
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'warranty_expired'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#"
        onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/registerproduct_details/<?php echo e($mlist->msg); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p> Warranty date for the product <b><?php echo e(ucfirst($pname)); ?></b> has expired
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'amc_cmc_expired'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#"
        onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/registerproduct_details/<?php echo e($mlist->msg); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p> Your Maintenance Contract get expired for the product
                    <b><?php echo e(ucfirst($pname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'admin_approve_existing'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/asset_management')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <div class="Desic">
                <h6></h6>
                <p>The Admin has approved request for adding product
                    <b><?php echo e(ucfirst($mlist->msg)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'admin_reject_existing'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/asset_management')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <div class="Desic">
                <h6></h6>
                <p>The Admin has rejected request for adding product
                    <b><?php echo e(ucfirst($mlist->msg)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'validation_date_buyersent'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/quality_manage')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/quality_manage')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>

            <p>The buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has sent  Validation Request for the product  <b><?php echo e(ucfirst($pname)); ?></b> for further process.
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'register_po'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#"
        onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/verifyregsold_po/<?php echo e($mlist->reg_soldid); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>

                <p>The <b> <?php echo e(ucfirst($pname)); ?></b> with equipment id <?php echo e($mlist->common2); ?> under order id <?php echo e($mlist->common); ?> has completed the registration.

               
                
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'register_regsold'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#"
        onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/asset_management/<?php echo e($mlist->reg_soldid . '_' . $mlist->product_id . '_' . $mlist->sender_id . '_' . $mlist->bidid); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The <b> <?php echo e(ucfirst($mlist->name)); ?></b> has completed registration of
                    sold product <b><?php echo e(ucfirst($pname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'po_sold_verify_complete'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/register_po/<?php echo e($mlist->reg_soldid); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>All fields of product <b><?php echo e(ucfirst($pname)); ?></b> with equipment id <?php echo e($mlist->reg_soldid); ?>  under order id <?php echo e($mlist->common); ?> has been verified.
              
                    <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'register_po_edit'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#"
        onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/verifyregsold_po/<?php echo e($mlist->reg_soldid); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p><b> <?php echo e(ucfirst($pname)); ?></b>  with equipment id <?php echo e($mlist->common2); ?> under order id 
                    <?php echo e($mlist->common); ?> has updated the registration.
                <p>

                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'amc_cmc_activate'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/register_sold/<?php echo e($mlist->product_id); ?>/<?php echo e($mlist->buyer_id); ?>/<?php echo e($mlist->bidid); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
    
        <?php if($mlist->common=='po'): ?>

            <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/register_po/<?php echo e($mlist->common2); ?>')">
        <?php else: ?>

        <a href="#"
        onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/register_sold/<?php echo e($mlist->product_id); ?>/<?php echo e($mlist->buyer_id); ?>/<?php echo e($mlist->bidid); ?>')">
            
       
            
        <?php endif; ?>
    
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has sent
                <?php echo e(strtoupper($mlist->msg)); ?> activation request for the product
                <b><?php echo e(ucfirst($pname)); ?></b>
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'amc_cmc_activate_complaint'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/quality_manage')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/quality_manage')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has sent
                <?php echo e(strtoupper($mlist->msg)); ?> activation request for the product
                <b><?php echo e(ucfirst($pname)); ?></b> for further process
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>

    <?php elseif($mlist->type == 'submitted_amc/cmc_thirdparty'): ?>
    <?php if($mlist->common == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <a href="#"
        onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/registerproduct_details/<?php echo e($mlist->regproduct_id); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The <b> <?php echo e(ucfirst($mlist->name)); ?></b> submitted
                    <?php echo e(strtoupper($mlist->msg)); ?> charges and validity for the product
                    <b><?php echo e(ucfirst($pname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>


<?php elseif($mlist->type == 'submitted_amc/cmc'): ?>
    <?php if($mlist->common == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <a href="#"
        onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/registerproduct_details/<?php echo e($mlist->regproduct_id); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The <b> <?php echo e(ucfirst($mlist->name)); ?></b> submitted
                    <?php echo e(strtoupper($mlist->msg)); ?> charges and validity for the product
                    <b><?php echo e(ucfirst($pname)); ?></b>for further process.
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>

<?php elseif($mlist->type == 'submitted_validationdate'): ?>
    <?php if($mlist->common == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <a href="#"
        onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/registerproduct_details/<?php echo e($mlist->regproduct_id); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The vendor <b> <?php echo e(ucfirst($mlist->name)); ?></b>  has updated the validation date for the product
                    <b><?php echo e(ucfirst($pname)); ?></b>for furthur process.
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'validationdate_approve_reject'): ?>
    <?php if($mlist->common == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/quality_manage')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/quality_manage')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>

           
            <p>The Buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has <?php echo e($mlist->msg); ?>

                validation date for the product <b><?php echo e(ucfirst($pname)); ?></b>in the process 
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'amc_cmc_renew'): ?>
    <?php if($mlist->common == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The <b> <?php echo e(ucfirst($mlist->name)); ?></b> has sent renew
                <?php echo e($mlist->msg); ?> request for the product <b><?php echo e(ucfirst($pname)); ?></b> for further process.
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'amc_cmc_approve_reject'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php if($mlist->common == 'outwarranty'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/quality_manage')">
        <?php else: ?>
            <?php if(Auth::user()->user_type == '3'): ?>
                <a href="#"
                    onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/register_sold/<?php echo e($mlist->product_id); ?>/<?php echo e($mlist->buyer_id); ?>/<?php echo e($mlist->bidid); ?>')">
            <?php endif; ?>
            <?php if(Auth::user()->user_type == '2'): ?>

                 <?php if($mlist->common2=='po'): ?>
                        <a href="#"
                        onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/register_po/<?php echo e($mlist->common3); ?>')">
                <?php else: ?>

                <a href="#"
                onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/register_sold/<?php echo e($mlist->product_id); ?>/<?php echo e($mlist->buyer_id); ?>/<?php echo e($mlist->bidid); ?>')">
                <?php endif; ?>
            
            <?php endif; ?>
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The Buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has <?php echo e($mlist->msg); ?>

                charges for the product <b><?php echo e(ucfirst($pname)); ?></b> during the process. 
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'amc_cmc_approve_reject_renew'): ?>
    <?php if($mlist->common == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/quality_manage')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/quality_manage')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The Buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has <?php echo e($mlist->msg); ?>

                charges for the product <b><?php echo e(ucfirst($pname)); ?></b>
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'po_sold_verify'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/register_po/<?php echo e($mlist->reg_soldid); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/register_po/<?php echo e($mlist->reg_soldid); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The <b><?php echo e(ucfirst($pname)); ?></b> with equipment id <?php echo e($mlist->reg_soldid); ?> under the field <b><?php echo e($mlist->msg); ?></b> is not yet verified.
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'approve_checking'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/register_sold/<?php echo e($mlist->product_id); ?>/<?php echo e($mlist->sender_id); ?>/<?php echo e($mlist->bidid); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/register_sold/<?php echo e($mlist->product_id); ?>/<?php echo e($mlist->sender_id); ?>/<?php echo e($mlist->bidid); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has not verified the fields
                <?php echo e(ucfirst($mlist->msg)); ?> for the product <b><?php echo e(ucfirst($pname)); ?></b>
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'complaint_open'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/quality_manage')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/quality_manage')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The complaint registered on <b><?php echo e(ucfirst($mlist->reason)); ?></b> for the
                product <b><?php echo e(ucfirst($pname)); ?></b>is still open
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'approve_checking_buyer'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#"
        onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/asset_management/<?php echo e($mlist->reg_soldid . '_' . $mlist->product_id . '_' . $mlist->sender_id . '_' . $mlist->bidid); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The <b> <?php echo e(ucfirst($mlist->name)); ?></b> has updated the fields for
                    product <b><?php echo e(ucfirst($pname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'approved_dealer_accept'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/buyerregister')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has accepted the request
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'approved_category_admin'): ?>
    <?php
        $catname = App\Helpers\CustomHelper::cat_name($mlist->category_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/requestcategory')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/requestcategory')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p><b> Admin</b> has approved your request for adding category <b>
                    <?php echo e(ucfirst($catname)); ?> </b>
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'approved_manufacurer_admin'): ?>
    <?php
        $details = App\Helpers\CustomHelper::userdetails($mlist->manufacturer_id);
    ?>
    <?php
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/manufacturer')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <div class="Desic">
                <h6></h6>
                <p><b> Admin</b> has approved your dealership request with manufacturer
                    <?php echo e(ucfirst($details['userdetails']['name'])); ?>

                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'reject_manufacurer_admin'): ?>
    <?php
        $details = App\Helpers\CustomHelper::userdetails($mlist->manufacturer_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/manufacturer')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <div class="Desic">
                <h6></h6>
                <p><b> Admin</b> has rejected your dealership request with manufacturer
                    <?php echo e(ucfirst($details['userdetails']['name'])); ?>

                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'rejected_category_admin'): ?>
    <?php
        $catname = App\Helpers\CustomHelper::cat_name($mlist->category_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/requestcategory')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/requestcategory')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p><b> Admin</b> has rejected your request for adding category <b>
                    <?php echo e(ucfirst($catname)); ?></b>
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'approved_product_admin'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_requestname($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/requestproduct')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/requestproduct')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p><b> Admin</b> has approved your request for adding product
                <b><?php echo e(ucfirst($pname)); ?></b>
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'rejected_product_admin'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_requestname($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/requestproduct')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/requestproduct')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p><b> Admin</b> has rejected your request for adding product
                <b><?php echo e(ucfirst($pname)); ?></b>
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>

    <?php elseif($mlist->type == 'reject_serviceengg'): ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <p> The complaint id <?php echo e($mlist->complaint_id); ?> on scheduled date <?php echo e(date('d-m-Y', strtotime($mlist->common2))); ?> is rejected. 
          
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>













    <?php elseif($mlist->type == 'approve_schedule_notification'): ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <p> The complaint id <?php echo e($mlist->complaint_id); ?> on scheduled date <?php echo e(date('d-m-Y', strtotime($mlist->common2))); ?> is approved. 
          
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>




<?php elseif($mlist->type == 'approve_quotation_notification'): ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The <b> <?php echo e(ucfirst($mlist->name)); ?></b> has approved quotation  under complaint ID 
                 <?php echo e($mlist->complaint_id); ?> for further process.
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>



     <?php elseif($mlist->type == 'serviceengg_open_buyer'): ?>

    <?php if($mlist->msg == 'approve'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/complaint_status/')">
   
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
       
        <div class="Desic">


          
            <p> Service Engineer raised new quotation request for the product <b><?php echo e(ucfirst($pname)); ?></b> with complaint id <b><?php echo e($mlist->complaint_id); ?></b> 
            
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>

    <?php elseif($mlist->type == 'serviceengg_open_buyer'): ?>

    <?php if($mlist->msg == 'approve'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/complaint_status/')">
   
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
       
        <div class="Desic">


          
            <p> Service engineer raised new quotation request for the product <b><?php echo e(ucfirst($pname)); ?></b> with complaint id <b><?php echo e($mlist->complaint_id); ?></b> 
            
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>






    <?php elseif($mlist->type == 'serviceengg_close_buyer'): ?>
    <?php if($mlist->msg == 'approve'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    
   
   
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/complaint_status/')">
   
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
       
        <div class="Desic">
          
            <p> The Complaint id  <b><?php echo e($mlist->complaint_id); ?></b> for the product  <?php echo e(ucfirst($pname)); ?> has been closed. 
            
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>







<?php elseif($mlist->type == 'approved_dealer_reject'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/buyerregister')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has rejected your
                    dealership request
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'reject_schedule_notification'): ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">     
            <p>The complaint id <?php echo e($mlist->complaint_id); ?> on scheduled date <?php echo e(date('d-m-Y', strtotime($mlist->common2))); ?>  is rejected! 
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'reject_quotation_notification'): ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The Quoation under complaint id <?php echo e($mlist->complaint_id); ?> was rejected by the <?php echo e(ucfirst($mlist->name)); ?> in the process.           
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'approve_schedule_notification'): ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <p> The complaint id <?php echo e($mlist->complaint_id); ?> on scheduled date <?php echo e(date('d-m-Y', strtotime($mlist->common2))); ?> is approved. 
          
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'approve_quotation_notification'): ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The <b> <?php echo e(ucfirst($mlist->name)); ?></b> has approved quotation for the
                complaint having complaint <?php echo e($mlist->complaint_id); ?>

            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>


    <?php elseif($mlist->type == 'serviceengg_open_vendor'): ?>



    <?php if($mlist->msg == 'approve'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    
   
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
       
        <div class="Desic">
          
            <p> Service Engineer raised new quotation request for the product  <b><?php echo e(ucfirst($pname)); ?></b> with complaint id <?php echo e($mlist->complaint_id); ?> 
            
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>

    <?php elseif($mlist->type == 'serviceengg_close_vendor'): ?>



    <?php if($mlist->msg == 'approve'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    
   
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
       
        <div class="Desic">
          
            <p> The Complaint id  <b><?php echo e($mlist->complaint_id); ?></b> for the product <b> <?php echo e(ucfirst($pname)); ?> </b>has been closed. 
            
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>











<?php elseif($mlist->type == 'complaint_accept_serviceengg'): ?>
   
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
       
        <div class="Desic">
          
            <p> Service Engineer <b><?php echo e(ucfirst($mlist->common2)); ?></b>  is available to attend your complaint id <?php echo e($mlist->complaint_id); ?> to fix the issue. 
            
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>

    <?php elseif($mlist->type == 'quotation_collect'): ?>
   
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/quality_manage')">

<div class="notification icons <?php if ($mlist->read_status == 0) {
    echo 'active';
} ?>">
    <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
    <?php
        $eng = App\Helpers\CustomHelper::enggdetails($mlist->sender_id);
    ?>
    <?php
        $buyername = App\Helpers\CustomHelper::userdetails($mlist->buyer_id);
    ?>
    <div class="Desic">
        <h6></h6>


        <p>The Service Engineer <b><?php echo e(ucfirst($eng['enggdetails']['first_name'] . ' ' . $eng['enggdetails']['last_name'])); ?></b>
            has collected cost Rs <?php echo e($mlist->amount); ?>  as quotation charge from the 
            <?php echo e(ucfirst($buyername['userdetails']['name'])); ?>  to initiate the process
        <p>
        <p><?php
            $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
        ?>
            <?php echo e($nw); ?></p>
    </div>
</div>
</a>

    <?php elseif($mlist->type == 'quotation_collect_buyer'): ?>
   
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/complaint_status')">

<div class="notification icons <?php if ($mlist->read_status == 0) {
    echo 'active';
} ?>">
    <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
    <?php
        $eng = App\Helpers\CustomHelper::enggdetails($mlist->sender_id);
    ?>
    <?php
        $buyername = App\Helpers\CustomHelper::userdetails($mlist->buyer_id);
    ?>
    <div class="Desic">
        <h6></h6>
        <p>The Service Engineer <b><?php echo e(ucfirst($eng['enggdetails']['first_name'] . ' ' . $eng['enggdetails']['last_name'])); ?></b>
            has collected cost Rs <?php echo e($mlist->amount); ?>  as quotation charge from the 
            <?php echo e(ucfirst($buyername['userdetails']['name'])); ?>  to initiate the process
        <p>
        <p><?php
            $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
        ?>
            <?php echo e($nw); ?></p>
    </div>
</div>
</a>



    <?php elseif($mlist->type == 'sevicecharge_accept_engg_buyer'): ?>
   
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/complaint_status')">
   
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php
            $eng = App\Helpers\CustomHelper::enggdetails($mlist->sender_id);
        ?>
        <?php
            $buyername = App\Helpers\CustomHelper::userdetails($mlist->buyer_id);
        ?>
        <div class="Desic">
            <h6></h6>
            <p>The  Service Engineer <b><?php echo e(ucfirst($eng['enggdetails']['first_name'] . ' ' . $eng['enggdetails']['last_name'])); ?></b>
                collected cost Rs <?php echo e($mlist->amount); ?>  as service charge from  buyer
                <?php echo e(ucfirst($buyername['userdetails']['name'])); ?> for the service
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>




<?php elseif($mlist->type == 'sevicecharge_accept_engg'): ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/quality_manage')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/quality_manage')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php
            $eng = App\Helpers\CustomHelper::enggdetails($mlist->sender_id);
        ?>
        <?php
            $buyername = App\Helpers\CustomHelper::userdetails($mlist->buyer_id);
        ?>
        <div class="Desic">
            <h6></h6>
            <p>The  Service Engineer <b><?php echo e(ucfirst($eng['enggdetails']['first_name'] . ' ' . $eng['enggdetails']['last_name'])); ?></b>
                collected cost Rs <?php echo e($mlist->amount); ?>  as service charge from  buyer
                <?php echo e(ucfirst($buyername['userdetails']['name'])); ?> for the service
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>






    
<?php elseif($mlist->type == 'complaint_reject_serviceengg'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php
            $eng = App\Helpers\CustomHelper::enggdetails($mlist->sender_id);
        ?>
        <div class="Desic">

            <p> Service Engineer <b><?php echo e(ucfirst($mlist->common)); ?> </b> is not available to handle your complaint id <?php echo e($mlist->complaint_id); ?> to fix the problem. 
         
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'approve_register_sent'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/orderlists')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6><?php echo e(ucfirst($mlist->name)); ?></h6>
                <p><?php echo e(ucfirst($mlist->msg)); ?></p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'message_vendor_complaint'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/asset_management')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6><?php echo e(ucfirst($mlist->name)); ?></h6>
                <p><?php echo e(ucfirst($mlist->msg)); ?></p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'message_buyer_complaint'): ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/quality_manage')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/quality_manage')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6><?php echo e(ucfirst($mlist->name)); ?></h6>
            <p><?php echo e(ucfirst($mlist->msg)); ?></p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'serviceengg_messagex'): ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php
            $eng = App\Helpers\CustomHelper::enggdetails($mlist->sender_id);
        ?>
        <div class="Desic">
            <h6><?php echo e(ucfirst($eng['enggdetails']['first_name'] . ' ' . $eng['enggdetails']['last_name'])); ?>

            </h6>
            <p><?php echo e(ucfirst($mlist->msg)); ?></p>
            <p>
                <?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'orderlist_message_sent'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/orderlists')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6><?php echo e(ucfirst($mlist->name)); ?></h6>
                <p><?php echo e(ucfirst($mlist->msg)); ?></p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'myquotes_message_sentvendor'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/quotestatus')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6><?php echo e(ucfirst($mlist->name)); ?></h6>
                <p><?php echo e(ucfirst($mlist->msg)); ?></p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'myquotes_message_sentbuyer'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/myquotes')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6><?php echo e(ucfirst($mlist->name)); ?></h6>
                <p><?php echo e(ucfirst($mlist->msg)); ?></p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'complaint_register_sent'): ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/quality_manage')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/quality_manage')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6><?php echo e(ucfirst($mlist->name)); ?></h6>
            <p><?php echo e(ucfirst($mlist->msg)); ?></p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'quote_enquiry_sent'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/myquotes')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6><?php echo e(ucfirst($mlist->name)); ?></h6>
                <p><?php echo e(ucfirst($mlist->msg)); ?></p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'complaint_resolved_vendor'): ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php
            $eng = App\Helpers\CustomHelper::enggdetails($mlist->sender_id);
        ?>
        <?php if($mlist->msg == 'approve'): ?>
            <?php
                $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
            ?>
        <?php else: ?>
            <?php
                $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
            ?>
        <?php endif; ?>
        <div class="Desic">

            <p>The complaint status of product <b><?php echo e(ucfirst($pname)); ?></b> is  updated by <?php echo e($mlist->common); ?> (Service Engineer). 
 
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'submitted_propsal_regsold'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#"
        onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/registerproduct_details/<?php echo e($mlist->regproduct_id); ?>')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has submitted AMC and CMC proposal
                    for the product <b><?php echo e(ucfirst($pname)); ?> </b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'submitted_quotation'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/complaint_status')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The vendor <b><?php echo e(ucfirst($mlist->name)); ?></b> has submitted a quotation for the
                    product <b><?php echo e(ucfirst($pname)); ?> </b> with complaint id <?php echo e($mlist->complaint_id); ?> for further processing. 
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'complaint_resolved_buyer'): ?>
   
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/complaint_status')">
       
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php
            $eng = App\Helpers\CustomHelper::enggdetails($mlist->sender_id);
        ?>
        <?php if($mlist->msg == 'approve'): ?>
            <?php
                $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
            ?>
        <?php else: ?>
            <?php
                $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
            ?>
        <?php endif; ?>
        <div class="Desic">
            <p>The complaint status of product <b><?php echo e(ucfirst($pname)); ?></b> is  updated by <?php echo e($mlist->common2); ?> (Service Engineer). 
 
                <p>
           
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'buyer_register_notification_vendor'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/approveddealers')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>The <b> <?php echo e(ucfirst($mlist->name)); ?></b> has sent a dealership request
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'vendor_manufaturer_register_notification_vendor'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/dealerapprovals')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has sent a dealership request
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'quote_submit_notification'): ?>
    <?php
        $mpname = App\Helpers\CustomHelper::masterproduct_name($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/quoterequests')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/quoterequests')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has submitted a quote request for the
                product <b><?php echo e(ucfirst($mpname)); ?></b>
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'get_demo_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/myquotes')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/myquotes')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has requested a demo for the for the
                product <b><?php echo e(ucfirst($pname)); ?></b>
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'accept_demo_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/quotestatus')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has accepted your demo request for
                    the product <b><?php echo e(ucfirst($pname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'reject_demo_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/quotestatus')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has rejected your demo request for
                    the product <b><?php echo e(ucfirst($pname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'reject_amount_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/quotestatus')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has rejected the final amount for
                    the <b><?php echo e(ucfirst($pname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'in_production_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/orderlists')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>Your purchased product <b><?php echo e(ucfirst($pname)); ?></b> is in production
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'in_package_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/orderlists')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p> Your purchased product <b><?php echo e(ucfirst($pname)); ?></b> is in package
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'complaint_complete_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/asset_management')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has resolved your complaint for the
                    product <b><?php echo e(ucfirst($pname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'complaint_close_notification'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <p>The complaint for the product  <b><?php echo e(ucfirst($pname)); ?></b> with complaint id <?php echo e($mlist->complaint_id); ?> is closed
           
           
            <p> <?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'under_observation_product'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p>The buyer <b> <?php echo e(ucfirst($mlist->name)); ?></b> has put the product
                <b><?php echo e(ucfirst($pname)); ?></b> under observation for <?php echo e($mlist->reason); ?>

                days
            <p>
            <p> <?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'reject_bid_notification'): ?>
    <?php
        $mpname = App\Helpers\CustomHelper::masterproduct_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/quotestatus')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has rejected quote request for the
                    product <b><?php echo e(ucfirst($mpname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'place_bid_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/quotestatus')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has placed bid for the product
                    <b><?php echo e(ucfirst($pname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'accept_amount_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/quotestatus')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has accepted final amount for the
                    product <b><?php echo e(ucfirst($pname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'reject_amount_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/quotestatus')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has rejected final amount for tge
                    product <b><?php echo e(ucfirst($pname)); ?></b>
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'order_dispatch_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/orderlists')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <div class="Desic">
                <h6></h6>
                <p>Dispatched the product <b><?php echo e($pname); ?></b> ordered on
                    <?php echo e(date('d-m-Y', strtotime($mlist->ordered_date))); ?>

                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'quote_confirm_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/myquotes')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/myquotes')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has confirmed final amount for the
                product <b><?php echo e(ucfirst($pname)); ?></b>
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'quote_reject_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/myquotes')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/myquotes')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has rejected your quote amount for the
                product <b><?php echo e(ucfirst($pname)); ?></b>
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'product_place_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/orderlists')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/orderlists')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <h6></h6>
            <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has placed order for the product
                <b><?php echo e(ucfirst($pname)); ?></b>
            <p>
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'add_servicecharge_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
   
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/complaint_status')">
       
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <?php
        $str = $mlist->msg;
        $x = explode(' ', $str);
        ?>
        <div class="Desic">

            <p>The vendor <b><?php echo e(ucfirst($mlist->name)); ?></b> has submitted the service charge for the complaint on <?php echo e(date('d-m-Y', strtotime($x[0]))); ?>(registered date). 
           
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'schedule_engg_notification'): ?>
    <?php
        $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
    ?>
   
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/complaint_status')">
   
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
            <?php
            $str = $mlist->common2;
            $x = explode(' ', $str);
            ?>

            <p>The vendor has assigned a service engineer on <?php echo e(date('d-m-Y', strtotime($x[0]))); ?>  for the complaint 

            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'register_complaint_notification'): ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <?php if($mlist->msg == 'approve'): ?>
            <?php
                $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
            ?>
        <?php else: ?>
            <?php
                $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
            ?>
        <?php endif; ?>

        <?php

        

        ?>
        <div class="Desic">
            <h6></h6>
            
            <p>The buyer <b><?php echo e(ucfirst($mlist->name)); ?></b>  has registered a complaint with id <?php echo e($mlist->complaint_id); ?> for the 
                product <b><?php echo e(ucfirst($pname)); ?></b> to look into. </p>
            <p>
                <?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                <?php echo e($nw); ?>

            </p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'approve_servicecharge_notification'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
          <p>The service charge for the product <b><?php echo e(ucfirst($pname)); ?></b> with complaint id <?php echo e($mlist->complaint_id); ?> is  approved.
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'reject_servicecharge_notification'): ?>
    <?php if($mlist->msg == 'approve'): ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
        ?>
    <?php else: ?>
        <?php
            $pname = App\Helpers\CustomHelper::product_existing_name($mlist->product_id);
        ?>
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '3'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'manufacturers/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <?php if(Auth::user()->user_type == '2'): ?>
        <a href="#"
            onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/view_complaint/<?php echo e($mlist->complaint_id); ?>')">
    <?php endif; ?>
    <div class="notification icons <?php if ($mlist->read_status == 0) {
        echo 'active';
    } ?>">
        <?php if(!empty($mlist->pro_pic)): ?>
            <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
        <?php else: ?>
            <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
        <?php endif; ?>
        <div class="Desic">
           <p>The service charge for the product <b><?php echo e(ucfirst($pname)); ?></b> with complaint id <?php echo e($mlist->complaint_id); ?> is rejected.
            <p><?php
                $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
            ?>
                <?php echo e($nw); ?></p>
        </div>
    </div>
    </a>
<?php elseif($mlist->type == 'register_new_critical_notification'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/orderlists')">
        <div class="notification icons <?php if ($mlist->read_status == 0) {
            echo 'active';
        } ?>">
            <?php if(!empty($mlist->pro_pic)): ?>
                <img src="<?php echo e(url('user_files')); ?>/<?php echo e($mlist->pro_pic); ?>">
            <?php else: ?>
                <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
            <?php endif; ?>
            <?php
                $pname = App\Helpers\CustomHelper::product_name($mlist->product_id);
            ?>
            <div class="Desic">
                <h6></h6>
                <p>The <b><?php echo e(ucfirst($mlist->name)); ?></b> has marked the
                    <?php echo e(ucfirst($pname)); ?> condition as critical</p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php endif; ?>
<?php /**PATH /home/meddbot/public_html/resources/views/include/messaging-list-extended.blade.php ENDPATH**/ ?>