<style>
    .order_div .ordrStatus{
        background: #10beb43b;
        display: inline-block;
        padding: 3px 10px;
        border-radius: 35px;
        font-weight: 500;
        color: #14beb4 !important;
        border: 1px solid;
        font-size: 13px;
    }
</style>



<?php $__env->startSection('content'); ?>
<div class="common-content">
    <div class="page-content">
        <div class="page-heading">
            <div class="headings">
                <h6> Quote status</h6>
            </div>
        </div>
		
	<?php if(count($all_quotes) > 0): ?>
        <div class="boxings">
            <div class="custom-tabs" style="margin-top: 0;">
                <ul class="nav nav-tabs" role="tablist">
                    <li class="nav-item">
					    <input class="form-control search-rs" type="text" id="search-criteria" placeholder="Search"/>
                        <!--<a class="nav-link active" data-toggle="tab" href="#home">All Quotes</a>-->
                    </li>
                    <!--<li class="nav-item">
                        <a class="nav-link" data-toggle="tab" href="#menu1">Shortlisted Quote</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" data-toggle="tab" href="#menu2">Rejected Quote</a>
                    </li>-->
                </ul>
                <!-- nav-tabs End -->
				
				 
				
				
			
                <div class="tab-content">
                    <div id="home" class="tab-pane active">
                        <?php $__currentLoopData = $all_quotes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$allquotes): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						 <div class="describing-product">
							    <div class="product-name product-name-rs">
                                    <div class="prdct-kp2">
									   <div class="row">
											 <div class="col-md-12" style="margin-bottom: 10px;">
                                                 <h6><span class="cateory-name" ><b>Quote Id</b></span> : <span><b><?php echo e($allquotes->quote_unique_id); ?></b></span></h6>                                            
											</div>
									
									    </div>
									   <div class="row prnames">
											 <div class="col-md-12 prname" style="margin-bottom: 10px;">
                                                 <h6><span class="cateory-name" >Product Name</span> : <span><?php echo e($allquotes->product_name); ?></span></h6>                                           
											</div>
									
									    </div>
										<div class="row">
											 <div class="col-md-12" style="margin-bottom: 10px;">
											 <?php 
											     $fulldate  =explode(" ",$allquotes->created_at);
											 ?>
                                                 <h6><span class="cateory-name" >Posted Date</span> : <span><?php echo e(date('d-m-Y', strtotime($fulldate[0]))); ?></span></h6>                                            
											</div>
									
									    </div>
										<div class="row">
											 <div class="col-md-12" style="margin-bottom: 10px;">
                                                 <h6><span class="cateory-name" >Description</span> : <span><?php echo e($allquotes->product_information); ?></span></h6>                                            
											</div>
									
									    </div>
										
										 <?php
											$res  			= App\Helpers\CustomHelper::bidno($allquotes->id);
										 ?>
										<div class="row">
											 <div class="col-md-12" style="margin-bottom: 10px;">
                                                 <h6><span class="cateory-name" >No of bids</span> : <span><?php echo e($res['all_bidscount']); ?></span></h6>                                            
											</div>
									
									    </div>
										 <?php
											$res1  			= App\Helpers\CustomHelper::bidplacestatus($allquotes->id);
										 ?>
										 
										
										<?php if($res1['placecount']==1): ?>
											<div class="row">
                                                <div class="col-md-12" style="margin-bottom: 10px;">
                                                    <h6 class="order_div"><span class="cateory-name" >Order Status</span> : <span class="ordrStatus" >Order placed to <?php echo e(ucfirst($res1['vendorname'])); ?></span></h6>                                            
                                                </div>
                                            </div>
										<?php endif; ?>
										
									<?php if($res['all_bidscount'] !=0): ?>
										
											 <div class="wraper" style="margin-bottom: 10px;">
												<h6><a class="more-info" href="<?php echo e(url('buyers/bid_list/'.$allquotes->id)); ?>">View Bid details</a><span></span></h6>                                            
											</div>
									   
									<?php endif; ?>
									</div>
							   
                                </div>    
						</div>	
									
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                     </div>  
                    <!-- home-tab End -->
                   
                        
                        
                   
          
                    
                     
                    <div class="clear"></div>
                </div>
                <!--tab-content End -->
				
            </div>
            <!--custom-tabs End -->
        </div>
		<?php else: ?>
			
		   <div class="col-lg-12 col-md-6 col-sm-12 col-xs-12">
                            <div class="product-display">
                                <ul>
                                    <li>
                                        <div class="details">
                                            <div>
                                                <h6>
                                                No Quotes available
                                                </h6>
                                            </div>
                                            
                                           
                                        </div>
                                    </li>
                                    
                                  
                                </ul>
                            </div>
                        </div>
		
		<?php endif; ?>
		
		
        <!--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>
    $('#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 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").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 =  (price+amount)+' INR is your total price';
        $('.totalprice').html(total);
        $('.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 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").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>






$('#search-criteria').keyup(function(){
	
    $('.describing-product').hide();
    var txt = $('#search-criteria').val();
    $('.describing-product').each(function(){
       if($(this).text().toUpperCase().indexOf(txt.toUpperCase()) != -1){
           $(this).show();
       }
    });
});



  $(".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){
	 $('#demoCompleteModal').modal({backdrop: 'static', keyboard: false});
	    $('#bid_id_demo_complete').val(id);
	    $('#vendor_id_demo_complete').val(vendorid);
	    $('#product_id_demo_complete').val(productid);
     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/quote_status.blade.php ENDPATH**/ ?>