<!DOCTYPE html>
<!-- Created by CodingLab |www.youtube.com/CodingLabYT-->
<html lang="en" dir="ltr">
    <head>
        <!-- Required meta tags -->
         <meta charset="utf-8">
      <meta content="width=device-width, initial-scale=1.0" name="viewport">
      <title>Augmenting Intelligence to Buy, Sell and Manage|Meddbot</title>
      <meta content="" name="description">
      <meta content="" name="keywords">
    
      <!-- Favicons -->
      <link rel="icon" href="<?php echo e(url('assets/img/favicon.png')); ?>" type="image/png" sizes="16x16">
          
        <!-- Google Font -->
        <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap" rel="stylesheet">
    
        <!-- Bootstrap CSS -->
        <link rel="stylesheet" href="<?php echo e(url('assets/css/bootstrap.min.css')); ?>">
        
        <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css" rel="stylesheet" >
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script>
          
        <!-- font awesome js -->
        <script src="https://kit.fontawesome.com/c026154490.js" crossorigin="anonymous"></script>
    
        <link rel="stylesheet" href="<?php echo e(url('assets/css/zebra_datepicker.min.css')); ?>" type="text/css">
        
        <link rel="stylesheet" href="<?php echo e(url('assets/css/chosen.css')); ?>" type="text/css">
          
        <!-- Custom CSS -->
        <link rel="stylesheet" href="<?php echo e(url('assets/css/owl.carousel.min.css')); ?>">
        <link rel="stylesheet" href="<?php echo e(url('assets/css/style_new.css')); ?>">
    
        <!--swal css -->
        
        <link href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.css" rel="stylesheet" />
        <script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"></script>
   
        
       
       
       <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css" rel="stylesheet" />
       
       <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.23/css/jquery.dataTables.css">
     <link rel="stylesheet" href="https://cdn.datatables.net/1.10.23/css/dataTables.bootstrap4.min.css">  
    
    <link rel="stylesheet" type="text/css" href="<?php echo e(url('dropzone/dist/min/dropzone.min.css')); ?>">
       
        <!--<title>Diollo</title>-->
    
     <style>
    label.error{
        color:red;
    }
    
    .disabled {
        pointer-events:none; 
        opacity:0.6; 
    }
    
    .img-prew{
    width: 100px;
    height: 100px;
    margin-top: -95px;
    border-radius: 50%;
    margin-left: -5px;
           }
    .post-imgPrw{
    height: 50px;
    margin-left: 10px;
    width: 50px;
    margin-top: 0px;
           }   
           
    
    .invalid-feedback {
      display:block;
    }
    .image img {
        width: 247px;
        height: 271px;
        object-fit: cover;
    }
    label.error{
            color: red !important;
            font-size: 12px !important;
            font-weight: 500;
          }
    </style>
    
     <?php echo $__env->yieldContent('styles'); ?>
    
      </head>
   <style>

    </style>
<body>
    
    <main>
        <div class="sidebar ">
            <button class="close menu-icon only-mobile"><i class="fa fa-times" aria-hidden="true"></i></button>
            <a href="index.html">
                <div class="company-logo">
                    <img src="<?php echo e(url('assetsnew/img/logowhite.png')); ?>">
                </div>
            </a>
            
            <?php echo $__env->make('include.menu_new', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
        <div class="home-section">
            <?php echo $__env->make('include.header_new', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

            <?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">
                                    <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 class="graph">
    
                                     <?php
                                        $equipmentusage  			= App\Helpers\CustomHelper::equipment_day($hosp->individualbuyer_id);
                                     ?> 
                                        <h6>Equipment Running </h6>
                                        <div class="clearfix">
                                            <div id="bluecircle" data-percent="<?php echo e(round($equipmentusage['totalusage_daily'])); ?>" class="big">
                                            </div>
                                         </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                       <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php else: ?> 
                    
                <span>NO DATA FOUND</span>
                    
                <?php endif; ?>
    
    
                    </div>
                    </div>
                </div>
               </section>
            
            
            <footer>
                <span>Copyright © 2021, Meddbot</span>
            </footer>
        </div>
    </main>
    
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    
   
    
<!--    <script src="<?php echo e(url('assets/css/mock.js')); ?>"></script>-->
        
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script src="<?php echo e(URL::to('assetsnew/js/percircle.js')); ?>"></script>
  <link rel="stylesheet" href="<?php echo e(URL::to('assetsnew/js/percircle.css')); ?>">

  <script src="<?php echo e(URL::to('assets/js/validation/jquery.validate.min.js')); ?>"> </script>
  <script src="<?php echo e(URL::to('assets/js/validation/additional-methods.js')); ?>"></script>
  <?php echo $__env->make('include.script_new', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  <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 type="text/javascript">



$(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('');
});

});












    $(function () {
      $("[id$='bluecircle']").percircle();

      
    });

$(document).ready( function() {

    $("#search_buyer").validate({

        rules: {
            "country1": {
                required: true
            
            },
            "state1": {
                required: true
            
            },
        },
        submitHandler: function(form, e) {
        form.submit();
        }
    });

    $('#country1').on('change', function() {

        var countryid = this.value;
        var APP_URL = <?php echo json_encode(url('/getstates1')); ?> ;
        var saveData = $.ajax({
                type: 'GET',
                url: APP_URL+'/'+countryid,
                data: { countryid: countryid, _token: '<?php echo e(csrf_token()); ?>' },
                dataType: "text",
                success: function(resultData) {
                $("#state1").html(resultData);
                $('.js-category-filterable').hide();
               
                }
                });

    });

});

</script>

    <script>
           $(".menu-icon").click(function(){
           $(".sidebar").toggleClass("open");
            });
      
    </script>
 
</body>
</html>
<?php /**PATH /home/meddbot/public_html/resources/views/buyers/groupbuyerdashboard.blade.php ENDPATH**/ ?>