<?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 == 'inspection_date_reject'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/equipment_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 <?php echo e(ucfirst($mlist->name)); ?> has rejected the Inspection 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 == '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">
                <h6></h6>
                <p>The Store <?php echo e(ucfirst($mlist->name)); ?> has send the
                    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 == 'remind_bio_medical'): ?>
    <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 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')">
        <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 complaint for order id <b><?php echo e($mlist->common); ?></b> is resolved. Please proceed for 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')">
        <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 accounts admin shared the price details for the 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 == 'payment_gm_reject'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/manage_payments#menu2');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">
                <h6></h6>
                <p>The GM has rejected the price details of the 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 == 'payment_gm_approve'): ?>
    <?php if($mlist->msg == 'account'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/manage_payments#menu1');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">
            <h6></h6>
            <p>The GM has approved the account details of the 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 == 'inspection_date_approved'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/equipment_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 <?php echo e(ucfirst($mlist->name)); ?> has approved the Inspection 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 == 'inspection_date_submit'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/inspection_date_process')">
        <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 requested an Inspection 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_approve'): ?>
    <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 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/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 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_vendor'): ?>
    <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 Store <?php echo e(ucfirst($mlist->name)); ?> has received the product 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_storeweb'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/equipment_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 Store <?php echo e(ucfirst($mlist->name)); ?> has received the product 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 == 'inspection_pass'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/inspection_date_process')">
        <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 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_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_ready'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/inspection_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 Biomedical <?php echo e(ucfirst($mlist->name)); ?> <?php echo e($mlist->msg); ?> for
                    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 == '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 Vendor <?php echo e(ucfirst($mlist->name)); ?> has added Pre requisites of the
                    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'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/extensiondate_process')">
        <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/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 Store Department has generated chellan details 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 == 'payment_update'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/accountdetails/<?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 accounts admin updated payment details of 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 == '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>Accounts Department has rejected your bank details 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 == '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>Accounts Department has approved your bank details 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 == '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><b> <?php echo e(ucfirst($mlist->name)); ?></b> has updated the bank details 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 == '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><b> <?php echo e(ucfirst($mlist->name)); ?></b> has submitted the bank details 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 == '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 admin has created a purchase order 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 == 'po_dispatch'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/equipment_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>Your package with order id <b><?php echo e($mlist->common); ?></b> is dispatched
                <p>
                <p><?php
                    $nw = App\Helpers\CustomHelper::timeAgo($mlist->date);
                ?>
                    <?php echo e($nw); ?></p>
            </div>
        </div>
    </a>
<?php elseif($mlist->type == 'po_inpackage'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/equipment_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>Your package with order id <b><?php echo e($mlist->common); ?></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 == 'po_inproduction'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/equipment_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>Your package with order id <b><?php echo e($mlist->common); ?></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 == 'pa_ordersummary_reject'): ?>
    <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>GM Procurement has rejected the purchase order 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 == '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>Purchase Admin has updated the purchase order 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 == 'pa_ordersummary_approved'): ?>
    <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>GM Procurement has approved the purchase order 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 == '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>GM Procurement has requested to add bank details of 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 == '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/asset_management')">
        <?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">
            <h6></h6>
            <p>The buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b> raised installation 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 == '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/dealerregistration')">
        <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_aapprove_dealerrequest'): ?>
    <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'vendors/manufacturerregister')">
        <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">
            <h6></h6>
            <p>The buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has reopened the complaint
                registered 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 == '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 service 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 == '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($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 == '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->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<b> <?php echo e(ucfirst($mlist->name)); ?></b> has completed verification
                    process of the 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 == '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>The Vendor <b> <?php echo e(ucfirst($mlist->name)); ?></b> has updated the
                    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 == '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'): ?>
        <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; ?>
    <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>
            <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>
                <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>
                <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 <b> <?php echo e(ucfirst($mlist->name)); ?></b> submitted validation date 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 == '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>
            <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 Buyer<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>
            <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'): ?>
                <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 <?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 == '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->common); ?>')">
    <?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->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">
            <h6></h6>
            <p>The GM 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 == '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/manufacturerregister')">
        <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/manufacturerregister')">
        <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 == '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">
            <h6></h6>
            <p>The <b> <?php echo e(ucfirst($mlist->name)); ?></b> has rejected scheduled date
                for the complaint having complaint id <?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 == '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 buyer<b> <?php echo e(ucfirst($mlist->name)); ?></b> has rejected 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 == '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">
            <h6></h6>
            <p>The <b> <?php echo e(ucfirst($mlist->name)); ?></b> has approved scheduled date
                for the complaint having complaint id <?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 == '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 buyer<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 == 'complaint_accept_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">
            <h6></h6>
            <p><b><?php echo e(ucfirst($eng['enggdetails']['first_name'] . ' ' . $eng['enggdetails']['last_name'])); ?></b>
                is available to attend the assigned 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 == '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><b><?php echo e(ucfirst($eng['enggdetails']['first_name'] . ' ' . $eng['enggdetails']['last_name'])); ?></b>
                has collected service charge of Rs <?php echo e($mlist->amount); ?> from the buyer
                <?php echo e(ucfirst($buyername['userdetails']['name'])); ?>

            <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">
            <h6></h6>
            <p><b><?php echo e(ucfirst($eng['enggdetails']['first_name'] . ' ' . $eng['enggdetails']['last_name'])); ?></b>
                is not available to attend the assigned complaint for the product
                <b><?php echo e(ucfirst($pname)); ?></b>
            <p>
            <p><b>Reason:</b><?php echo e($mlist->reason); ?></p>
            <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">
            <h6></h6>
            <p><b><?php echo e(ucfirst($eng['enggdetails']['first_name'] . ' ' . $eng['enggdetails']['last_name'])); ?></b>
                has updated the status of complaint registered on
                <?php echo e(date('d-m-Y', strtotime($mlist->ordered_date))); ?> 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_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/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 submitted a quotation for the
                    product <b><?php echo e(ucfirst($pname)); ?> </b> of the complaint
                <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'): ?>
    <?php if($mlist->common == 'po'): ?>
        <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/complaint_status')">
        <?php else: ?>
            <a href="#" onclick="readmessage(<?php echo e($mlist->id); ?>,'buyers/asset_management')">
    <?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">
            <h6></h6>
            <p><b><?php echo e(ucfirst($eng['enggdetails']['first_name'] . ' ' . $eng['enggdetails']['last_name'])); ?></b>
                has updated the status of complaint registered on
                <?php echo e(date('d-m-Y', strtotime($mlist->ordered_date))); ?> 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 == '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'): ?>

dfdfdf
    <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">
            <h6></h6>
            <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has closed the complaint registered on
                <?php echo e(date('d-m-Y', strtotime($mlist->ordered_date))); ?> 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 == '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->date;
        $x = explode(' ', $str);
        ?>
        <div class="Desic">
            <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has submitted service charges for
                the complaint registered on <?php echo e(date('d-m-Y', strtotime($x[0]))); ?></p>
            <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->date;
            $x = explode(' ', $str);
            ?>
            <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has assigned a service engineer for
                the complaint registered on <?php echo e(date('d-m-Y', strtotime($x[0]))); ?></p>
            <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; ?>
        <div class="Desic">
            <h6></h6>
            <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has registered a 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 == '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">
            <h6></h6>
            <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has approved your service charge for the
                product <b><?php echo e($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_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">
            <h6></h6>
            <p><b><?php echo e(ucfirst($mlist->name)); ?></b> has rejected your service charge for the
                product <b><?php echo e($pname); ?></b> </p>
            <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/buyers/messaging-list-extended.blade.php ENDPATH**/ ?>