<style>
    .percircle.big {
        font-size: 141px !important;
    }
    .percircle {
        position: relative;
        width: 140px !important;
        height: 140px !important;
    }    
      
    </style>
     <link rel="stylesheet" href="<?php echo e(url('assets/css/style_new.css')); ?>">


    
    
    <?php $__env->startSection('content'); ?>
          <div class="common-content">
              <div class="page-content">
                    <div class="page-heading">
                        <div class="headings">
                            <h6>My Dashboard</h6>
                        </div>
                    </div>
                  
                    <div class="dashboard-cnts">
                        <?php
                        $allcounts  			= App\Helpers\CustomHelper::groubbuyerdashboards();
                       
                      ?> 
                        <section>
                            <div class="content">
                                <div class="home-boards d-flex align-items-center justify-content-center">
                                    <div class="boards d-flex">
                                        <div class="single-boards">
                                            <h2><?php echo e($allcounts['hospitalcount']); ?>+</h2>
                                            <h3>Hospitals</h3>
                                        </div>
                                        <div class="single-boards">
                                            <h2><?php echo e($allcounts['equipmentcount']); ?>+</h2>
                                            <h3>Equipments</h3>
                                        </div>
                                        <div class="single-boards" style="border-right: 0px solid #fff !important;">
                                            <h2><?php echo e($allcounts['vendorscount']); ?>+</h2>
                                            <h3>Vendors</h3>
                                        </div>
                                    </div>
                                </div>
                                <div class="hospital-details">
                
                                    <form name="search_buyer" id="search_buyer" method="GET" action="<?php echo e(url('buyers/search_buyer')); ?>" enctype="multipart/form-data">
                                        <?php echo csrf_field(); ?>
                                    <div class="row g-4">
                                    <div class="col-12">
                                        <h4 class="details-hd" >Search Hospitals</h4>
                                    </div>
                                    
                                
                                    <div class="col-lg-4">
                                        <select class="form-control select-cu" id="country1" name="country1">
                                            <option value="">Select Country</option>
                                            <?php $__currentLoopData = $countrylist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $countries): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($countries->id); ?>" <?php if($country==$countries->id){echo "selected";}?>><?php echo e(ucfirst($countries->name)); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            
                                        </select>
                                    </div>
                                    <div class="col-lg-4">
                                        <select class="form-control select-cu" id="state1" name="state1" >
                                            <option value="">Select State</option>
                                            <?php $__currentLoopData = $statelist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $states): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                               <option value="<?php echo e($states->id); ?>" <?php if($state==$states->id){echo "selected";}?>><?php echo e(ucfirst($states->name)); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </select>
                                    </div>
                                    <div class="col-lg-4 search-bt">
                                       
                
                                         <a class=" medd-btn" href="https://www.meddbot.com/buyers/dashboard">Clear Search</a>
                                         
                                    </div>
                                   
                                </form>
                                
                                    <div class="col-12">
                                        <h4 class="details-hd">Hospitals</h4>
                                        <span class="not" style="display:none;">NO DATA FOUND</span>
            
                                    </div>
                <?php if(count($hospitals)!=0): ?>
                                <?php $__currentLoopData = $hospitals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $hosp): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="col-lg-6 js-category-filterable" data-category="<?php echo $hosp->state.'_'.$hosp->city;?>">
                                  
                                        <div class="hospital-grd">
                                            <div class="hospital-details-main d-flex mobile-view">
                                                <div class="details-rs">
                                                    <h3><?php echo e(ucfirst($hosp->name)); ?></h3>
                                                    
                                                    <p><?php echo e(ucfirst($hosp->description)); ?></p>
                                                </div>
                                                <div class="Hospital-image">
                                                
                                                    <?php if(!empty($hosp->pro_pic)): ?>
                                                        <img  src="<?php echo e(url('/user_files')); ?>/<?php echo e($hosp->pro_pic); ?>">
                                                    <?php else: ?>
                                                       <img  src="<?php echo e(url('assets/images/propic.png')); ?>">
                                                    <?php endif; ?>
                                                </div>
                                            </div>
                                            <div class="hospital-status d-flex mobile-view" style="display:block !important;">
                                                <div class="h-status">
                                                    <div class="table-status">
                
                                                        <?php
                                                            $hosdetails  			= App\Helpers\CustomHelper::hospitadetails($hosp->individualbuyer_id);
                                                        ?>
                                                        
                                                        <div class="st d-flex"><div>Pending Complaints  </div><div>:</div><div style="color: green;" ><?php echo e($hosdetails['pendingcomplaints']); ?></div></div>
                                                        <div class="st d-flex"><div>Critical Pending Complaints  </div><div>:</div><div style="color: red;"><?php echo e($hosdetails['criticalcomplaint']); ?></div></div>
                                                        <div class="st d-flex"><div>Validation Request </div><div>:</div><div style="color: dimgrey;"><?php echo e($hosdetails['validationreqcount']); ?></div></div>
                                                        <div class="st d-flex"><div>AMC and CMC Request  </div><div>:</div><div style="color: lightblue;"><?php echo e($hosdetails['amc_cmcrequest']); ?></div></div>
                                                        <div class="st d-flex"><div> Warranty Expiry      </div><div>:</div><div style="color: deeppink;"><?php echo e($hosdetails['warrantyexpired']); ?></div></div>
                                                    </div>
                                                    <a href="<?php echo e(url('buyers/hospital_details/'.$hosp->individualbuyer_id)); ?>" class="status-btn" >Status</a>
                                                </div>
                                             
                                            </div>
                                        </div>
                                    </div>
                                   <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php else: ?> 
                                
                            <span>NO DATA FOUND</span>
                                
                            <?php endif; ?>
                
                
                                </div>
                                </div>
                            </div>
                           </section>
                        
                
                    </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; ?>
    
    </script>

    <script>

$(function() {

$('#state1').change(function() {

    
var country =$("#country1").val();


var $select = $(this);
if ($select.val() == 'all') {
  // No filter selected.  Show all categories
  $('.js-category-filterable').show();
  //$('.js-current-category').text('All');
} else {

    var x=0;
  $('.js-category-filterable').each(function() {
    if ($(this).data('category') == country +'_' + $select.val()) {
      
       x=1;
      $(this).show();
    } else {
      $(this).hide();
      x=0;
     
    }

    if(x==0){
        $(".not").css("display","block");
    }
    else{
        $(".not").css("display","none");  
    }
  });
  //$('.js-current-category').text( $select.find('option:selected').text() );
}
// Reset select box so it's easier to use repeatedly.
//$select.val('');
});

});


    </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/procurementdashboard.blade.php ENDPATH**/ ?>