<?php $__env->startSection('content'); ?>


<style>
.d-flex.f2.justify-content-between a, .compalintBox .justify-content-between .btns.common-btn, .compalintBox .card  .justify-content-between span.view-msg {
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    height: 34px;
    margin-right: 3px;
    margin-top: 0;
}

.user-rating {
    direction: rtl;
    font-size: 20px;
    unicode-bidi: bidi-override;
    padding: 10px 30px;
    display: inline-block;
}
.user-rating input {
    opacity: 0;
    position: relative;
    left: -15px;
    z-index: 2;
    cursor: pointer;
}
.user-rating span.star:before {
    color: #777777;
    content:"ï€†";
    /*padding-right: 5px;*/
}
.user-rating span.star {
    display: inline-block;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    position: relative;
    z-index: 1;
}
.user-rating span {
    margin-left: -15px;
}
.user-rating span.star:before {
    color: #777777;
    content:"\f006";
    /*padding-right: 5px;*/
}
.user-rating input:hover + span.star:before, .user-rating input:hover + span.star ~ span.star:before, .user-rating input:checked + span.star:before, .user-rating input:checked + span.star ~ span.star:before {
    color: #ffd100;
    content:"\f005";
}

.selected-rating{
    color: #ffd100;
    font-weight: bold;
    font-size: 3em;
}

label.error{
	color:red;
}
.user i:before {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f2c0";
}
</style>
<div class="common-content">
    <div class="page-content">
        <div class="page-heading">
            <div class="headings">
                <h6> Quote status</h6>
            </div>
        </div>
        <?php
		  $res  			= App\Helpers\CustomHelper::ratingaverage($biddetails[0]['vendorproductid']);
	    ?>
		
        <div class="boxings newbidDetails">
            <div class="custom-tabs" style="margin-top: 0;">
           
                
                <div class="tab-content">
                    <div id="home" class="tab-pane active">
                       
                        <div class="describing-product">
							<div class="product-name product-name-rs">
							        <div class="prdct-kp prdct-kp2">
                                       <div class="row">
									   
										<div class="cards">
                                            <div class="col-md-12" style="margin:0 0 15px;">
                                       <?php if(!empty($biddetails[0]['bid_status'])): ?>
										
										<?php if(($biddetails[0]['bid_status'] == '1') || ($biddetails[0]['bid_status'] == '2') || ($biddetails[0]['bid_status'] == '11') || ($biddetails[0]['bid_status'] == '16') || ($biddetails[0]['bid_status'] == '17') || ($biddetails[0]['bid_status'] == '18')): ?>
											<div class="quote-btns">
												<?php if(($biddetails[0]['bid_status'] == '1')||($biddetails[0]['bid_status'] == '17')): ?>
													<div>
												
														    <button class="btn common-btn blue-btn" data-toggle="modal" data-target="#demoModal" data-quoteid="<?php echo e($biddetails[0]['quoteid']); ?>" data-id="<?php echo e($biddetails[0]['id']); ?>"  data-vendor="<?php echo e($biddetails[0]['user_id']); ?>" data-product="<?php echo e($biddetails[0]['vendor_product_id']); ?>"><i class="fas fa-hand-pointer"></i> Get a demo</button>
													  
													</div>
												<?php endif; ?>  
												<?php if(($biddetails[0]['bid_status'] == '16')): ?>
													<div>
													
													    <button class="btn common-btn blue-btn" onclick="democomplete('<?php echo e($biddetails[0]['id']); ?>','<?php echo e($biddetails[0]['user_id']); ?>','<?php echo e($biddetails[0]['vendor_product_id']); ?>','<?php echo e($biddetails[0]['quoteid']); ?>')" style="display:inline-block"></i> Demo Completed</button>
													</div>
												<?php endif; ?>
												<?php if(($biddetails[0]['bid_shortlisted'] == '0')): ?>
													<div>
														<a href="<?php echo e(url('buyers/shortlistbid')); ?>/<?php echo e($biddetails[0]['id']); ?>/<?php echo e($biddetails[0]['quoteid']); ?>"><button class="btn common-btn black-btn"><i class="fas fa-clipboard-check"></i> Shortlist</button></a>
													</div>
												<?php endif; ?>
												
												<div>                                        
													<button class="btn common-btn green-btn" data-toggle="modal" data-target="#myModal" data-id="<?php echo e($biddetails[0]['id']); ?>" data-tax="<?php echo e($biddetails[0]['bid_tax']); ?>" data-vendor="<?php echo e($biddetails[0]['user_id']); ?>" data-product="<?php echo e($biddetails[0]['vendor_product_id']); ?>"  data-quoteid="<?php echo e($biddetails[0]['quoteid']); ?>"><i class="far fa-check-circle"></i> Confirm</button>                                        
												</div>
												<div>
													<a href="<?php echo e(url('buyers/rejectbid')); ?>/<?php echo e($biddetails[0]['id']); ?>/<?php echo e($biddetails[0]['user_id']); ?>/<?php echo e($biddetails[0]['vendor_product_id']); ?>/<?php echo e($biddetails[0]['quoteid']); ?>" onclick="return confirm('Are you sure?')"><button class="btn common-btn red-btn"><i class="fas fa-ban"></i> Reject</button></a>
												</div>
												<div>
													<a href="<?php echo e(url('/message_buyer_quotes/'.$biddetails[0]['id'].'/'.$biddetails[0]['vendor_product_id'].'/'.$biddetails[0]['user_id'])); ?>"><span class="btn common-btn green-btn sendmessage">Send Message</span></a>
												</div>
											</div>
										<?php elseif($biddetails[0]['bid_status'] == '12'): ?>
											<div class="quote-btns">
												<div>
													<a href="<?php echo e(url('vendors/placeorder')); ?>/<?php echo e($biddetails[0]['id']); ?>/<?php echo e($biddetails[0]['user_id']); ?>/<?php echo e($biddetails[0]['vendor_product_id']); ?>/<?php echo e($biddetails[0]['quoteid']); ?>" class="btn common-btn green-btn">Place Order</a>
												</div>
											</div>
										<?php endif; ?>
									<?php endif; ?>
                                  </div>
                                            <div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd"> Quote Id</span> : <span><?php echo e($biddetails[0]['quote_unique_id']); ?></span>
                                                  
                                            </p>
                                        </div>
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd"> Bid Id</span> : <span><?php echo e($biddetails[0]['bid_unique_id']); ?></span>
                                                  
                                            </p>
                                        </div>	
										
                                     
										<div class="col-md-12">
                                            <p class="Product-id wraper">
											 <?php
												$masterpr  			= App\Helpers\CustomHelper::masterproduct_name($biddetails[0]['masterprdid']);
											?>
                                                <span class="quote-status-hd">Master Product Name</span> : <span><?php echo e(ucfirst($masterpr)); ?></span>
                                                  
                                            </p>
                                        </div>
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd">Closing date</span>: <span><?php echo e(date('d-m-Y', strtotime($biddetails[0]['closing_date']))); ?></span>
                                                  
                                            </p>
                                        </div>
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd">Expected date of delivery</span>: <span><?php echo e($biddetails[0]['delivery_date']); ?></span>
                                                  
                                            </p>
                                        </div>
                                        </div>
										<div class="cards">

                                        <?php if($biddetails[0]['user_type']=='2'): ?>
                                        <h6 class="asdf quote-status-hd">Vendor Details</h6> 
                                        <?php endif; ?> 
                                        <?php if($biddetails[0]['user_type']=='3'): ?>
                                        <h6 class="asdf quote-status-hd">Manufactutrer Details</h6>
                                        <?php endif; ?>
                                        
                                        <div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <?php if(!empty($biddetails[0]['pro_pic'])): ?>
                                                <img id="blah"  class="profile-pic" src="<?php echo e(url('/user_files')); ?>/<?php echo e($biddetails[0]['pro_pic']); ?>" alt="your image"  style="width: 30%;" />
                                                <?php else: ?>
                                                <img id="blah"  class="profile-pic" src="<?php echo e(url('assets/images/propic.png')); ?>" alt="your image" style="width: 30%;" />
                                                <?php endif; ?>
                                                  
                                            </p>
                                        </div>
										
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd"> 

                                                    <?php if($biddetails[0]['user_type']=='2'): ?>
                                                    Vendor Name
                                                    <?php endif; ?> 
                                                    <?php if($biddetails[0]['user_type']=='3'): ?>
                                                    Manufacturer Name
                                                    <?php endif; ?>
                                                </span> : <span><?php echo e(ucfirst($biddetails[0]['vendorname'])); ?></span>
                                                  
                                            </p>
                                        </div>
										 <?php
											$statename  			= App\Helpers\CustomHelper::state_name($biddetails[0]['state']);
										 ?>
										 
										  <?php
											$countryname  			= App\Helpers\CustomHelper::country_name($biddetails[0]['country']);
										 ?>
										
										
										
										
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd">

                                                    <?php if($biddetails[0]['user_type']=='2'): ?>
                                                    Vendor Address
                                                    <?php endif; ?> 
                                                    <?php if($biddetails[0]['user_type']=='3'): ?>
                                                    Manufacturer Address
                                                    <?php endif; ?>
                                                </span> : <span><?php echo e(ucfirst($biddetails[0]['vendoradd'])); ?><?php if($biddetails[0]['vendoradd']!=''): ?>,<?php endif; ?><?php echo e(ucfirst($statename)); ?><?php if($statename!=''): ?>,<?php endif; ?><?php echo e(ucfirst($countryname)); ?></span>
                                                  
                                            </p>
                                        </div>
										</div>
                                        <div class="cards">
										 <h6 class="quote-status-hd" >
                                            <?php if($biddetails[0]['user_type']=='2'): ?>
                                            Vendor Product Details
                                            <?php endif; ?> 
                                            <?php if($biddetails[0]['user_type']=='3'): ?>
                                            Manufacturer Product Details
                                            <?php endif; ?>
                                             
                                            
                                            
                                            </h6>                      
										
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd">

                                                    <?php if($biddetails[0]['user_type']=='2'): ?>
                                                    Vendor Product
                                                    <?php endif; ?> 
                                                    <?php if($biddetails[0]['user_type']=='3'): ?>
                                                    Manufacturer Product
                                                    <?php endif; ?>
                                                   
                                                
                                                </span>: <span><?php echo e(ucfirst($biddetails[0]['product_name'])); ?></span>
                                                  
                                            </p>
                                        </div>
										
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd">
                                                    
                                                    <?php if($biddetails[0]['user_type']=='2'): ?>
                                                    Vendor Product Id
                                                    <?php endif; ?> 
                                                    <?php if($biddetails[0]['user_type']=='3'): ?>
                                                    Manufacturer Product Id
                                                    <?php endif; ?>
                                                    
                                                    
                                                
                                                
                                                </span> : <span><?php echo e($biddetails[0]['product_code']); ?></span>
                                                  
                                            </p>
                                        </div>
										
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd">Product Warranty Year</span> : <span><?php echo e($biddetails[0]['product_warranty']); ?></span>
                                                  
                                            </p>
                                        </div>
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd"> Product Description </span>: <span><?php echo e(ucfirst($biddetails[0]['product_description'])); ?></span>
                                                  
                                            </p>
                                        </div>
                                        </div>
                                        <?php if(Auth::user()->user_type == '2'): ?>

                                        <div class="cards">
										 <h6 class="quote-status-hd" >Manufacturer Details</h6>      
										<div class="col-md-12">
                                            <p class="Product-id wraper">
											 <?php
												$manuname  			= App\Helpers\CustomHelper::manu_name($biddetails[0]['manufacturer']);
											?>
                                                <span class="quote-status-hd"> Manufacturer Name </span>: <span><?php echo e(ucfirst($manuname)); ?></span>
                                                  
                                            </p>
                                        </div>
                                        </div>

                                        <?php endif; ?>


                                        <div class="cards">
										 <h6 class="quote-status-hd" >Bid  Details</h6>   
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd"> Bid Placed on </span>: <span><?php echo e(date('d-m-Y',strtotime($biddetails[0]['created_at']))); ?></span>
                                                  
                                            </p>
                                        </div>
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd">Quote Requested date</span>: <span><?php echo e(date('d-m-Y',strtotime($biddetails[0]['quotesdate']))); ?></span>
                                                  
                                            </p>
                                        </div>
                                   
										
										<div class="col-md-12">
											<?php if(($biddetails[0]['bid_status']) == '0' || ($biddetails[0]['bid_status']) == '1' || ($biddetails[0]['bid_status']) == '2' ||($biddetails[0]['bid_status']) == '3' || ($biddetails[0]['bid_status']) == '4' ||($biddetails[0]['bid_status']) == '5' ||($biddetails[0]['bid_status']) == '11' || ($biddetails[0]['bid_status']) == '12' || ($biddetails[0]['bid_status']) == '13' || ($biddetails[0]['bid_status']) == '14' || ($biddetails[0]['bid_status']) == '15' || ($biddetails[0]['bid_status']) == '16'|| ($biddetails[0]['bid_status']) == '17' || ($biddetails[0]['bid_status']) == '18'): ?>
												<?php
													$amount = ($biddetails[0]['quote_price'] * $biddetails[0]['bid_tax'] / 100);
													$totalamount = $biddetails[0]['quote_price'] + $amount ;
												?>
												<?php if(($totalamount > '0')): ?>
                                            <p class="Product-id wraper"><span class="quote-status-hd">Quoted Price</span> : <span><?php echo e($totalamount); ?>(<?php echo e($biddetails[0]['quote_price']); ?> INR+<?php echo e($biddetails[0]['bid_tax']); ?>% tax)</span></p>
												<?php endif; ?>
											<?php endif; ?>
										</div>
										
										<?php if(!empty($biddetails[0]['bid_price'])): ?>
											<div class="col-md-12 ">
												<?php if(($biddetails[0]['bid_status']) == '0' || ($biddetails[0]['bid_status']) == '1' || ($biddetails[0]['bid_status']) == '2' ||($biddetails[0]['bid_status']) == '3' || ($biddetails[0]['bid_status']) == '4' ||($biddetails[0]['bid_status']) == '5' ||($biddetails[0]['bid_status']) == '11' || ($biddetails[0]['bid_status']) == '12' || ($biddetails[0]['bid_status']) == '13' || ($biddetails[0]['bid_status']) == '14' || ($biddetails[0]['bid_status']) == '15' || ($biddetails[0]['bid_status']) == '16'|| ($biddetails[0]['bid_status']) == '17' || ($biddetails[0]['bid_status']) == '18'): ?>
													<?php
														$amount 		= ($biddetails[0]['bid_price'] * $biddetails[0]['bid_tax'] / 100);
														$totalamount 	= $biddetails[0]['bid_price'] + $amount;
													?>
													<?php if(($totalamount > '0')): ?>
														
													 <p class="Product-id wraper"><span class="quote-status-hd">Final Price</span> : <span><?php echo e($totalamount); ?> (<?php echo e($biddetails[0]['bid_price']); ?> INR+<?php echo e($biddetails[0]['bid_tax']); ?>% tax)</span></p>
                                              
													<?php endif; ?>
													
											   <?php endif; ?>
											</div>
										<?php endif; ?>
										
										<div class="col-md-12 d-flex button-controls">
											<?php if(($biddetails[0]['bid_status']) == '0' || ($biddetails[0]['bid_status']) == '1' || ($biddetails[0]['bid_status']) == '2' ||($biddetails[0]['bid_status']) == '3' || ($biddetails[0]['bid_status']) == '4' ||($biddetails[0]['bid_status']) == '5' ||($biddetails[0]['bid_status']) == '11' || ($biddetails[0]['bid_status']) == '12' || ($biddetails[0]['bid_status']) == '13' || ($biddetails[0]['bid_status']) == '14' || ($biddetails[0]['bid_status']) == '15' || ($biddetails[0]['bid_status']) == '16'|| ($biddetails[0]['bid_status']) == '17' || ($biddetails[0]['bid_status']) == '18'): ?>
												
												<?php if(!empty($biddetails[0]['productcatalouge'])): ?>
													<a target="_blank"  href="https://www.meddbot.com/product_files/<?php echo e($biddetails[0]['productcatalouge']); ?>"><button style="cursor: pointer;"><i class="far fa-file-word"></i>View product catalogue</button></a>
												<?php endif; ?>
												<?php if(!empty($biddetails[0]['productcertificate'])): ?>
													<a target="_blank"  href="https://www.meddbot.com/product_files/<?php echo e($biddetails[0]['productcertificate']); ?>"><button style="cursor: pointer;"><i class="far fa-file-word"></i>View Product Certificate</button></a>
												<?php endif; ?>
												<?php if(!empty($biddetails[0]['productperformancereport'])): ?>
													<a target="_blank"  href="https://www.meddbot.com/product_files/<?php echo e($biddetails[0]['productperformancereport']); ?>"><button style="cursor: pointer;"><i class="far fa-file-word"></i>View Product Performance report</button></a>
												<?php endif; ?>
												<?php if(!empty($biddetails[0]['ordercopies'])): ?>
													<a target="_blank"  href="https://www.meddbot.com/product_files/<?php echo e($biddetails[0]['ordercopies']); ?>"><button style="cursor: pointer;"><i class="far fa-file-word"></i>View Order Copies</button></a>
												<?php endif; ?>
											
											
											
											<?php endif; ?>
										</div>
                                        
										<div class="col-md-12 bid-rs statusDiv">
                                            <p class="Product-id  Product-id wraperw">
                                                <span class="quote-status-hd"> Bid Status</span> :    
												<div class="righCont">
												
													<?php if(!empty($biddetails[0]['bid_status'])): ?>
													<?php if($biddetails[0]['bid_status'] == '3'): ?>
													   <h6 class="sendog" ><p class="status green medd-btn-c">Confirmed</p></h6>
													<?php elseif($biddetails[0]['bid_status'] == '4'): ?>
													   <h6 class="sendog" ><p  class="status green medd-btn-c">Order Placed</p></h6>
													<?php elseif($biddetails[0]['bid_status'] == '1'): ?>
													  <?php if($biddetails[0]['bid_shortlisted'] ==1): ?>
															<h6><p class="status green">Bid Short listed</p></h6>
													  <?php else: ?>
														<h6 class="sendog"><p  class="status green medd-btn-c">Bid Placed</p></h6>
															
												      <?php endif; ?>
													<?php elseif($biddetails[0]['bid_status'] == '5'): ?>
													   <h6 class="sendog" ><p  class="status green medd-btn-c">Dispatched</p></h6>
													<?php elseif($biddetails[0]['bid_status'] == '11'): ?>
													   <h6 class="sendog" ><p  class="status green medd-btn-c">Requested for Demo</p> <?php if(!empty($biddetails[0]['demo_date'])): ?><p style="color:#02b5b8">at <?php echo e(date('d-m-Y H:i',strtotime($biddetails[0]['demo_date']))); ?></p><?php endif; ?></h6>
													<?php elseif($biddetails[0]['bid_status'] == '12'): ?>
													   <h6 class="sendog" ><p  class="status green medd-btn-c">Accepted Final Amount</p></h6>
													<?php elseif($biddetails[0]['bid_status'] == '13'): ?>
													   <h6 class="sendog" ><p  class="status orange medd-btn-c">In Production</p></h6>
													<?php elseif($biddetails[0]['bid_status'] == '14'): ?>
													   <h6 class="sendog" ><p  class="status green medd-btn-c">In Packing</p></h6>
													<?php elseif($biddetails[0]['bid_status'] == '15'): ?>
													   <h6 class="sendog" ><p  class="status red medd-btn-c"> Rejected Final Amount</p></h6>
                                                       <?php elseif($biddetails[0]['bid_status'] == '20'): ?>
													   <h6 class="sendog" ><p  class="status red medd-btn-c"> Rejected</p></h6>
												   <?php elseif($biddetails[0]['bid_status'] == '16'): ?>
													   <h6 class="sendog" ><p  class="status green medd-btn-c"> Demo Request Accepted</p></h6>
												   <?php elseif($biddetails[0]['bid_status'] == '17'): ?>
													   <h6 class="sendog" ><p class="status red medd-btn-c"> Demo amendment requested</p></h6>
														<p><?php echo e($biddetails[0]['demo_reject_reason']); ?></p>
													 
												   <?php elseif($biddetails[0]['bid_status']== '18'): ?>
													   <h6 ><p  class="status green medd-btn-c"> Demo Completed </p><?php if(!empty($biddetails[0]['demo_finished_date'])): ?><p style="color:#02b5b8">at <?php echo e(date('d-m-Y H:i',strtotime($biddetails[0]['demo_finished_date']))); ?></p><?php endif; ?></h6>
                                                       <button class="btn common-btn yellow-btn ml-2"  onclick="demonotes('<?php echo e($biddetails[0]['demo_notes']); ?>')" style="    background: #02bcb1; display:inline-block">Demo Notes</button>

													<?php endif; ?>
													
												<?php elseif($biddetails[0]['bid_status'] == '0'): ?>
												   <h6 ><p  class="status medd-btn-c" style="margin-left: 5px;"> Rejected</p></h6>
												<?php else: ?>
												   <h6 ><p  class="status orange medd-btn-c">Pending</p></h6>
												<?php endif; ?>

                                              
												<div class="clear"></div>
												</div>
                                                
                                                  
                                            </p>
                                        </div>
                                        </div>
									<?php if($res['average_rate_professionalism'] !=0): ?>	
										 <div class="cards">
                                             <h6 class="asdf quote-status-hd">Customer Rating for vendor service</h6>           
										
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd">Professionalism</span> : 
												<span class="user-rating" disabled>
													<input type="radio" name="rating1" <?php if($res['average_rate_professionalism']==5){echo"checked";}?>  value="5" disabled><span class="star"></span>
													<input type="radio" name="rating1" <?php if($res['average_rate_professionalism']==4){echo"checked";}?> value="4" disabled><span class="star"></span>
													<input type="radio" name="rating1" <?php if($res['average_rate_professionalism']==3){echo"checked";}?> value="3" disabled><span class="star"></span>
													<input type="radio" name="rating1" <?php if($res['average_rate_professionalism']==2){echo"checked";}?> value="2" disabled><span class="star"></span>
													<input type="radio" name="rating1" <?php if($res['average_rate_professionalism']==1){echo"checked";}?>  value="1" disabled><span class="star"></span>
												</span>
                                                  
                                            </p>
                                        </div>
										
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd">Knowledge of product</span> : 
												<span class="user-rating" disabled>
													<input type="radio" name="rating2" <?php if($res['average_rate_knowledge']==5){echo"checked";}?>  value="5" disabled><span class="star"></span>
													<input type="radio" name="rating2" <?php if($res['average_rate_knowledge']==4){echo"checked";}?> value="4" disabled><span class="star"></span>
													<input type="radio" name="rating2" <?php if($res['average_rate_knowledge']==3){echo"checked";}?>  value="3" disabled><span class="star"></span>
													<input type="radio" name="rating2" <?php if($res['average_rate_knowledge']==2){echo"checked";}?> value="2" disabled><span class="star"></span>
													<input type="radio" name="rating2" <?php if($res['average_rate_knowledge']==1){echo"checked";}?>  value="1" disabled><span class="star"></span>
												</span>
                                                  
                                            </p>
                                        </div>
										
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd">Timely attending complaint</span> : 
												<span class="user-rating" disabled>
													<input type="radio" name="rating3" <?php if($res['average_rate_overall']==5){echo"checked";}?>  value="5" disabled><span class="star"></span>
													<input type="radio" name="rating3"  <?php if($res['average_rate_overall']==4){echo"checked";}?> value="4" disabled><span class="star"></span>
													<input type="radio" name="rating3"  <?php if($res['average_rate_overall']==3){echo"checked";}?> value="3" disabled><span class="star"></span>
													<input type="radio" name="rating3"  <?php if($res['average_rate_overall']==2){echo"checked";}?> value="2" disabled><span class="star"></span>
													<input type="radio" name="rating3"  <?php if($res['average_rate_overall']==1){echo"checked";}?> value="1" disabled><span class="star"></span>
												</span>
                                                  
                                            </p>
                                        </div>
										<div class="col-md-12">
                                            <p class="Product-id wraper">
                                                <span class="quote-status-hd">Overall satisfaction</span> : 
												<span class="user-rating" disabled>
													<input type="radio" name="rating4" <?php if($res['average_rate_timely']==5){echo"checked";}?>  value="5" disabled><span class="star"></span>
													<input type="radio" name="rating4" <?php if($res['average_rate_timely']==4){echo"checked";}?> value="4" disabled><span class="star"></span>
													<input type="radio" name="rating4" <?php if($res['average_rate_timely']==3){echo"checked";}?> value="3" disabled><span class="star"></span>
													<input type="radio" name="rating4" <?php if($res['average_rate_timely']==2){echo"checked";}?> value="2" disabled><span class="star"></span>
													<input type="radio" name="rating4" <?php if($res['average_rate_timely']==1){echo"checked";}?> value="1" disabled><span class="star"></span>
												</span>
                                                  
                                            </p>
                                        </div>
                                </div>
										
										<?php endif; ?>
									
                                      </div>
                                    </div>
							
							</div>
								
						</div>
                        
                      
                     </div>  
                    <!-- home-tab End -->

<!-- Modal -->

<div class="modal fade" id="myModalaction1" role="dialog"  aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered">
    <!-- Modal content-->
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">Demo Notes</h5>
                <button type="button" class="close close_message" data-dismiss="modal" aria-label="Close">
                  <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                           <p id="demo_notes"></p>
                              
                          </div>
                       
            </div>

        </div>

    </div>

<!-- Modal -->








					
					
					<!-- Modal -->
								 <div class="modal fade" id="demoModal" role="dialog" >
								 <?php //print_r($allquotes->bidId);?>
										<div class="modal-dialog modal-dialog-centered">

									  <!-- Modal content-->
											<div class="modal-content">
                                                <div class="modal-header mix">
                                                    <!--<div class="avatar">
                                                        <img src="https://www.meddbot.com/assets/img/avatar.png" alt="Avatar">
                                                    </div>-->
                                                    <span class="log-rs"></span>
<button type="button" class="close close_all" data-dismiss="modal">&times;</button>
                                                </div>
												<div class="modal-body model-custom">
													<button type="button" class="close close_demo" data-dismiss="modal">&times;</button>
													<form  class="getdemoform" method="POST" action="<?php echo e(url('buyers/getbiddemo')); ?>">
													<?php echo csrf_field(); ?>
														<div class="main-popup-contents">
															<p>Kindly Confirm the date and time for the demo</p>
															<div class="rs-flex2 newOuters">
																<input id="datepicker-yesterday-date" type="text" class="form-control" data-zdp_readonly_element="false" name="demo_date" value="" required>
																<input type="hidden" id="bid_id_demo" name="bid_id" value="">
																<input type="hidden" id="vendor_id_demo" name="vendor_id" value="">
																<input type="hidden" id="product_id_demo" name="product_id" value="">
																<input type="hidden" id="quoteid" name="quoteid" value="">

															</div>
															<button class="mix submit-popup create_demo" type="submit">SUBMIT</button>
														</div>
													</form>
												</div>
											</div>
										</div>
								</div>
								<!-- Modal -->
					
					
					        <!-- Modal demp completed -->
								 <div class="modal fade" id="demoCompleteModal" role="dialog" >
								 <?php //print_r($allquotes->bidId);?>
										<div class="modal-dialog modal-dialog-centered">

									  <!-- Modal content-->
											<div class="modal-content">
                                                <div class="modal-header mix">
                                                    <!--<div class="avatar">
                                                        <img src="https://www.meddbot.com/assets/img/avatar.png" alt="Avatar">
                                                    </div>-->
                                                    <span class="log-rs"> </span>

                                                    <button type="button" class="close close_all" data-dismiss="modal">&times;</button>
                                                </div>
												<div class="modal-body model-custom">
													<button type="button" class="close close_demo_complete" data-dismiss="modal">&times;</button>
													<form  class="getdemo_completeform" method="POST" action="<?php echo e(url('buyers/biddemocomplete')); ?>">
													<?php echo csrf_field(); ?>
														<div class="main-popup-contents">
															<p>Kindly Confirm the demo completed date</p>
															<div class="rs-flex2 newOuters">
																<input id="datepicker-before-date" type="text" class="form-control" data-zdp_readonly_element="false" name="demo_complete_date" value="" required>
																<input type="hidden" id="bid_id_demo_complete" name="bid_id" value="">
																<input type="hidden" id="vendor_id_demo_complete" name="vendor_id" value="">
																<input type="hidden" id="product_id_demo_complete" name="product_id" value="">
																<input type="hidden" id="quoteid_demo_complete" name="quoteid_demo_complete" value="">
																

															</div>

                                                            <p>Demo Notes</p>
															<div class="rs-flex2 newOuters">
																<textarea id="demo_notes" type="text" class="form-control"  name="demo_notes" value="" required></textarea>
																
															</div>
															<button class="mix submit-popup create_demo_complete" type="submit">SUBMIT</button>
														</div>
													</form>
												</div>
											</div>
										</div>
								</div>
								<!-- Modal -->
					
								<!-- Modal confirm -->
								 <div class="modal fade" id="myModal" role="dialog" >
								 <?php //print_r($allquotes->bidId);?>
										<div class="modal-dialog modal-dialog-centered">

									  <!-- Modal content-->
											<div class="modal-content">
                                                <div class="modal-header mix">
                                                    <!--<div class="avatar">
                                                        <img src="https://www.meddbot.com/assets/img/avatar.png" alt="Avatar">
                                                    </div>-->
                                                    <span class="log-rs"> Please Confirm the Quote</span>
<button type="button" class="close close_all" data-dismiss="modal">&times;</button>
                                                </div>
												<div class="modal-body model-custom">
													<button type="button" class="close close_all" data-dismiss="modal">&times;</button>
													<form  class="confirmallquote" method="POST" action="<?php echo e(url('buyers/confirmbid')); ?>">
													<?php echo csrf_field(); ?>
														<div class="main-popup-contents">
<!--															<h3 class="model-heading" >Please Confirm the Quote</h3>-->
															<p>Kindly Confirm the quote , and submit your confirmed amount</p>
															<div class="rs-flex2 newOuters">
																<input type="number" class="price" id="pricecal" class="form-control"  min="1" name="price" value="" required> <span>INR +</span><input type="text" class="tax" class="form-control" name="tax" value="" readonly><span> % tax</span>
																<input type="hidden" id="bid_id" name="bid_id" value="">
																<input type="hidden" id="vendor_id" name="vendor_id" value="">
																<input type="hidden" id="product_id" name="product_id" value="">
																<input type="hidden" id="quoteid_confirm" name="quoteid_confirm" value="">

															</div>
															<div class="prize">
																<label class="totalprice" style="display:none"></label>
															</div>

															<button class="mix submit-popup create">SUBMIT</button>
														</div>
													</form>
												</div>
											</div>
										</div>
								</div>
								<!-- Modal -->
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
               
                    
                     
                    <div class="clear"></div>
                </div>
                <!--tab-content End -->
            </div>
            <!--custom-tabs End -->
        </div>
        <!--boxings End -->
    </div>
    <!--page-content End -->
    
    
<!--</div>-->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script>
    <?php if(Session::has('message')): ?>
          swal({
            title: "",
            text: "<?php echo e(Session::get('message')); ?>",
            type: "success",
            showCancelButton: false,
            dangerMode: false,
            confirmButtonText: 'OK',

        });
    <?php endif; ?>
    <?php if(Session::has('errormessage')): ?>
          swal({
            title: "",
            text: "<?php echo e(Session::get('errormessage')); ?>",
            type: "error",
            showCancelButton: false,
            dangerMode: true,
            confirmButtonText: 'OK',

        });
    <?php endif; ?>
</script>
<script>

function demonotes(notes){
    $('#myModalaction1').modal({backdrop: 'static', keyboard: false});
    $("#demo_notes").html(notes);
}




    $('#myModal').on('show.bs.modal', function (event) {
  var button = $(event.relatedTarget) // Button that triggered the modal
  var id = button.data('id') // Extract info from data-* attributes
  var tax = button.data('tax')
  var vendor = button.data('vendor')
  var product = button.data('product')
  var quoteid = button.data('quoteid')
  var modal = $(this)
  modal.find('.modal-body input[name="bid_id"]').val(id);
  modal.find('.modal-body input[name="tax"]').val(tax);
  modal.find('.modal-body input[name="vendor_id"]').val(vendor);
  modal.find('.modal-body input[name="quoteid_confirm"]').val(quoteid);
   modal.find('.modal-body input[name="product_id"]').val(product);

})
</script>
<script>
    $(".create").click(function(){
        //alert("bbbb");
        $(".confirmallquote").validate({
            ignore: [],
            rules: {
                "price": {
                    required: true

                },

            },
            submitHandler: function(form, e) {
                 $(".pageloader").show();
                $(".pageloader").delay(5000).fadeOut("slow");
               form.submit();
            }
        });
    });
    $(function(){
        $('.confirmallquote').on('submit', function(event){
            event.preventDefault();

        });
    });
    $(".close_all").click(function(){
        $('.price').val('');
        $('.tax').val('');
        $('.totalprice').html('');
    });

</script>
<script>
    $('#myModalshort').on('show.bs.modal', function (event) {
      var button = $(event.relatedTarget) // Button that triggered the modal
      var id = button.data('id') // Extract info from data-* attributes
      var tax = button.data('tax')
      var vendor = button.data('vendor')
      var product = button.data('product')
      var modal = $(this)
      modal.find('.modal-body input[name="bid_id"]').val(id);
      modal.find('.modal-body input[name="tax"]').val(tax);
      modal.find('.modal-body input[name="vendor_id"]').val(vendor);
      modal.find('.modal-body input[name="product_id"]').val(product);
    })
</script>
<script>
    $(".create_short").click(function(){
        //alert("bbbb");
        $(".confirmshortquote").validate({
            ignore: [],
            rules: {
                "price_short": {
                    required: true

                },

            },
            submitHandler: function(form, e) {
                 $(".pageloader").show();
                $(".pageloader").delay(5000).fadeOut("slow");
               form.submit();
            }
        });
    });
    $(function(){
        $('.confirmshortquote').on('submit', function(event){
            event.preventDefault();

        });
    });

    $(".close_short").click(function(){
        $('#price_short').val('');
        $('#tax_short').val('');
        $('.totalpriceshort').html('');
    });

</script>
<script>
     $('.price').focusout(function(event){
      var price =   parseInt($('.price').val());
      var tax =   parseInt($('.tax').val());
      var amount =  (price*tax)/100;
      var total =  parseFloat((price+amount).toFixed(2))+' INR is your total price';

      if(($("#pricecal").val()!='')||($("#pricecal").val() > 0)){

        

        $('.totalprice').html(total);
        $('.totalprice').show();

      }
      else{

        $('.totalprice').html('');
        $('.totalprice').show();

      }
    });

</script>
<script>
     $('#price_short').focusout(function(event){
      var price =   parseInt($('#price_short').val());
      var tax =   parseInt($('#tax_short').val());
      var amount =  (price*tax)/100;
      var total =  (price+amount)+' INR is your total price';
        $('.totalpriceshort').html(total);
        $('.totalpriceshort').show();
    });

</script>
<script>
    $('#myModalmessage').on('show.bs.modal', function (event) {
      var button = $(event.relatedTarget) // Button that triggered the modal
      var id = button.data('id') // Extract info from data-* attributes
      var vendor = button.data('vendor')
      var product = button.data('product')
      var vendorname = button.data('vendorname')
      var modal = $(this)
      modal.find('.modal-body input[name="bid_id"]').val(id);
      modal.find('.modal-body input[name="vendor_id"]').val(vendor);
      modal.find('.modal-body input[name="product_id"]').val(product);
      modal.find('.modal-body input[name="to_name"]').val(vendorname);
    })
</script>
<script>
    $('#myModalmessageshort').on('show.bs.modal', function (event) {
      var button = $(event.relatedTarget) // Button that triggered the modal
      var id = button.data('id') // Extract info from data-* attributes
      var vendor = button.data('vendor')
      var product = button.data('product')
      var vendorname = button.data('vendorname')
      var modal = $(this)
      modal.find('.modal-body input[name="bid_id"]').val(id);
      modal.find('.modal-body input[name="vendor_id"]').val(vendor);
      modal.find('.modal-body input[name="product_id"]').val(product);
      modal.find('.modal-body input[name="to_name"]').val(vendorname);
    })
</script>
<script>
    $(".close_message").click(function(){
        $('.messagedetails').val('');
        $('#bid_id_msg').val('');
        $('#vendor_id_msg').val('');
        $('#product_id_msg').val('');
        $('#to_name').val('');
    });
</script>
<script>
    $(".close_message_short").click(function(){
        $('.messagedetails').val('');
        $('#bid_id_msgshort').val('');
        $('#vendor_id_msgshort').val('');
        $('#product_id_msgshort').val('');
        $('#to_name_short').val('');
    });
</script>
<script>
    $('#demoModal').on('show.bs.modal', function (event) {
  var button = $(event.relatedTarget) // Button that triggered the modal
  var id = button.data('id') // Extract info from data-* attributes
  var tax = button.data('tax')
  var vendor = button.data('vendor')
  var product = button.data('product')
  var quoteid = button.data('quoteid')
  
  var modal = $(this)
  modal.find('.modal-body input[name="bid_id"]').val(id);
  modal.find('.modal-body input[name="tax"]').val(tax);
  modal.find('.modal-body input[name="vendor_id"]').val(vendor);
  modal.find('.modal-body input[name="product_id"]').val(product);
  modal.find('.modal-body input[name="quoteid"]').val(quoteid);

})
</script>
<script>
    $(".create_demo").click(function(){
        //alert("bbbb");
        $(".getdemoform").validate({
            ignore: [],
            rules: {
                "demo_date": {
                    required: true

                },

            },
            submitHandler: function(form, e) {
                 $(".pageloader").show();
                $(".pageloader").delay(5000).fadeOut("slow");
               form.submit();
            }
        });
    });
    $(function(){
        $('.getdemoform').on('submit', function(event){
            event.preventDefault();

        });
    });
    $(".close_demo").click(function(){
        $('#bid_id_demo').val('');
        $('#vendor_id_demo').val('');
        $('#product_id_demo').val('');
        $('#datepicker-yesterday-date').val('');
        
    });

</script>
<script>
    $('#demoModalShort').on('show.bs.modal', function (event) {
  var button = $(event.relatedTarget) // Button that triggered the modal
  var id = button.data('id') // Extract info from data-* attributes
  var tax = button.data('tax')
  var vendor = button.data('vendor')
  var product = button.data('product')
  var modal = $(this)
  modal.find('.modal-body input[name="bid_id"]').val(id);
  modal.find('.modal-body input[name="tax"]').val(tax);
  modal.find('.modal-body input[name="vendor_id"]').val(vendor);
  modal.find('.modal-body input[name="product_id"]').val(product);

})
</script>
<script>
    $(".create_demo_short").click(function(){
        //alert("bbbb");
        $(".getdemoshortform").validate({
            ignore: [],
            rules: {
                "demo_date": {
                    required: true

                },

            },
            submitHandler: function(form, e) {
                 $(".pageloader").show();
                $(".pageloader").delay(5000).fadeOut("slow");
               form.submit();
            }
        });
    });
    $(function(){
        $('.getdemoshortform').on('submit', function(event){
            event.preventDefault();

        });
    });
    $(".close_demo_short").click(function(){
        $('#bid_id_demo_short').val('');
        $('#vendor_id_demo_short').val('');
        $('#product_id_demo_short').val('');
        $('#datepicker-future-tomorrow').val('');
        
    });

</script>
<!--<script>
    $('#democompleteModal').on('show.bs.modal', function (event) {
        alert();
  var button = $(event.relatedTarget) // Button that triggered the modal
  var id = button.data('id') // Extract info from data-* attributes
  var vendor = button.data('vendor')
  var product = button.data('product')
  alert(product);
  var modal = $(this)
  modal.find('.modal-body input[name="bid_id"]').val(id);
  modal.find('.modal-body input[name="vendor_id"]').val(vendor);
  modal.find('.modal-body input[name="product_id"]').val(product);

})
</script>-->
<script>
    $(".create_demo_complete").click(function(){
        //alert("bbbb");
        $(".getdemo_completeform").validate({
            ignore: [],
            rules: {
                "demo_complete_date": {
                    required: true

                },

            },
            submitHandler: function(form, e) {
                 $(".pageloader").show();
                $(".pageloader").delay(5000).fadeOut("slow");
               form.submit();
            }
        });
    });
    $(function(){
        $('.getdemo_completeform').on('submit', function(event){
            event.preventDefault();

        });
    });
    $(".close_demo_complete").click(function(){
        $('#bid_id_demo_complete').val('');
        $('#vendor_id_demo_complete').val('');
        $('#product_id_demo_complete').val('');
        $('#datepicker-before-date').val('');
        
    });

</script>
<script>
    function democomplete(id,vendorid,productid,quoteid){
	    $('#demoCompleteModal').modal({backdrop: 'static', keyboard: false});
	    $('#bid_id_demo_complete').val(id);
	    $('#vendor_id_demo_complete').val(vendorid);
	    $('#product_id_demo_complete').val(productid);
		$('#quoteid_demo_complete').val(quoteid);
     event.preventDefault();

}
</script>
<script>
    $(".create_demo_short_complete").click(function(){
        //alert("bbbb");
        $(".getdemo_short_completeform").validate({
            ignore: [],
            rules: {
                "demo_complete_date": {
                    required: true

                },

            },
            submitHandler: function(form, e) {
                 $(".pageloader").show();
                $(".pageloader").delay(5000).fadeOut("slow");
               form.submit();
            }
        });
    });
    $(function(){
        $('.getdemo_short_completeform').on('submit', function(event){
            event.preventDefault();

        });
    });
    $(".close_demo_short_complete").click(function(){
        $('#bid_id_demo_short_complete').val('');
        $('#vendor_id_demo_short_complete').val('');
        $('#product_id_demo_short_complete').val('');
        $('#datepicker-tomorrow-date').val('');
        
    });

</script>
<script>
    function demoshortcomplete(id,vendorid,productid){
	 $('#demoShortCompleteModal').modal({backdrop: 'static', keyboard: false});
	    $('#bid_id_demo_short_complete').val(id);
	    $('#vendor_id_demo_short_complete').val(vendorid);
	    $('#product_id_demo_short_complete').val(productid);
     event.preventDefault();

}
    
</script>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/meddbot/public_html/resources/views/buyers/bid_details.blade.php ENDPATH**/ ?>