<style>
.percircle.big {
    font-size: 141px !important;
}
.percircle {
    position: relative;
    width: 140px !important;
    height: 140px !important;
}    
  
</style>


<?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">
                    <div class="row">
                        <div class="col-12 blink">
                            <div class="bid-stats buyers">
                                     <?php 
                            
                            
                            if(!empty($userdata->name)){
                                $val2 = '1';
                            }else{
                                $val2 = '0';
                            }
                            
                            if(!empty($userdata->email)){
                                $val3 = '1';
                            }else{
                                $val3 = '0';
                            }
                            
                            if(!empty($userdata->phone_no)){
                                $val4 = '1';
                            }else{
                                $val4 = '0';
                            }
                            
                            
                            if(!empty($userdata->address)){
                                $val5 = '1';
                            }else{
                                $val5 = '0';
                            }
                            
                            
                            if(!empty($userdata->state)){
                                $val6 = '1';
                            }else{
                                $val6 = '0';
                            }
                            
                            if(!empty($userdata->city)){
                                $val7 = '1';
                            }else{
                                $val7 = '0';
                            }
                            
                            if(!empty($userdata->zipcode)){
                                $val8 = '1';
                            }else{
                                $val8 = '0';
                            }
                            
                            if(!empty($userdata->contact_name)){
                                $val9 = '1';
                            }else{
                                $val9 = '0';
                            }
                            
                            if(!empty($userdata->contact_phone_no)){
                                $val10 = '1';
                            }else{
                                $val10 = '0';
                            }
                            
                            if((Auth::user()->user_type == '1')||(Auth::user()->user_type == '5')||(Auth::user()->user_type == '6')||(Auth::user()->user_type == '4')){
                                if(!empty($userdata->buyer_type)){
                                $val11 = '1';
                                }else{
                                    $val11 = '0';
                                }
                             }elseif(Auth::user()->user_type == '2'){
                                if(!empty($userdata->vendor_type)){
                                $val11 = '1';
                                }else{
                                    $val11 = '0';
                                }
                             }
                             
                             if(!empty($userdata->description)){
                                $val12 = '1';
                                }else{
                                    $val12 = '0';
                                }
                             
                             $total = round(($val2+$val3+$val4+$val5+$val6+$val7+$val8+$val9+$val10+$val11+$val12)*100/11);
                             
                            //print_r($total);
                            
                            ?>
                            <?php if($total < 100): ?>
                                <div style="background-color:red;text-align:center;margin:auto;font-size: 14px;     padding: 8px;color: #fff;    font-weight: 200;    border-radius: 5px 5px 5px 5px; "><b>Your Profile is incomplete . Please <a href="<?php echo e(url('userprofile')); ?>">click here</a> to complete your profile.</b></div>
                            <?php endif; ?>
                            
                            
                                <div style="    margin-top: 10px; background-color:#fdca49;text-align:center;font-size: 14px;     padding: 8px;color: #000;    font-weight: 200;    border-radius: 5px 5px 5px 5px; "><b>The vendor has completed the registration of sold products. Please verify the details and approve the product to avail other services.<a href="<?php echo e(url('buyers/asset_management')); ?>">Click here</a></b></div>
                         
                                <h3 class="box-head">Purchase Order Statistics</h3>
                                <div class="row">
                                    <div class="col-md-4">
                                        <div class="grid-box blue">
                                            <div class="box-icon">
                                                <img src="<?php echo e(url('assets/images/buy-d1.png')); ?>">
                                            </div>
                                            <div class="boxvalue-head">
                                               Pending Orders
                                            </div>
                                            <div class="box-value"></div>
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <div class="grid-box green">
                                            <div class="box-icon">
                                                <img src="<?php echo e(url('assets/images/buy-d2.png')); ?>">
                                            </div>
                                            <div class="boxvalue-head">
                                                Approved Orders
                                            </div>
                                            <div class="box-value"></div>
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <div class="grid-box red">
                                            <div class="box-icon">
                                                <img src="<?php echo e(url('assets/images/buy-d3.png')); ?>">
                                            </div>
                                            <div class="boxvalue-head">
                                                Rejected Orders
                                            </div>
                                            <div class="box-value"></div>
                                        </div>
                                    </div>
                                </div>

                            </div>
							
							
							
                            <div class="row"> 
                                <div class="col-md-12">
                                    <h3 class="sub-headings">Latest Purchase Orders</h3>
                                    <div class="tableBox wraper">
                                    <table class="display table">
                                        <thead>
                                           <tr>
                                              <th>Model Number</th>
											  <th>Serial Number</th>
											  <th>Department Name</th>
                                              <th>Product Name</th>
                                              <th>Vendor</th>
                                              <th>Status </th>
                                           </tr>
                                        </thead>
                                        <tbody>

                                            
                                           
                                                <td></td>
												<td></td>
												<td></td>
                                                <td></td>
                                                <td>
												 
												</td>
						
                                                <td class="align"> 
													 
												</td>
                                            </tr>
                                              
                                            <tr><td>No Orders available</td></tr>
                                           
                                        </tbody>
                                    </table>
                                    </div>
                                </div> 
                            </div>
						
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<?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/subbuyerdashboard.blade.php ENDPATH**/ ?>