
<main class="app-content">
	
	<div class="row user">
        <div class="col-md-3">
          <div class="tile p-0">
            <ul class="nav flex-column nav-tabs user-tabs">
              <li class="nav-item"><a class="nav-link active" href="#user-timeline" data-toggle="tab">Profile</a></li>
              <li class="nav-item"><a class="nav-link" href="#user-settings" data-toggle="tab">Settings</a></li>
				      <li class="nav-item"><a class="nav-link" href="#user-services" data-toggle="tab">Services</a></li>
              <!--<li class="nav-item"><a class="nav-link" href="#user-billing" data-toggle="tab">Billing</a></li>-->
            </ul>
          </div>
        </div>
        <div class="col-md-9">
          <div class="tab-content">
            <div class="tab-pane active" id="user-timeline">
				
				      <div class="row">
					      <div class="col-12">
						      <div class="card p-3">
							    <?php 
                  if(isset($data['0']))
                  {
                    ?>
                     <h3>Name 	: <?php echo $data['0']->usr?> </h3>
                    <h3>Email 	: <?php echo $data['0']->email?></h3>
                    <h3>GST		:<?php echo $data['0']->gst?></h3>
                    <p>Mobile No :<?php echo $data['0']->phone ?></p>
                    <p>Address  : <?php echo $data['0']->address?></p>
                    <p>Pin Code	: <?php echo $data['0']->pincode?></p>
                    <p>State	: <?php echo $data['0']->state_name?> </p>
                    <p>Country	: <?php echo $data['0']->country_name?></p>
                    <?php
                  }
							     ?>
                    <h
							
							
							   </div>
						</div>
					</div>
					
				</div>
				
			  </div>
			  
			  
            <div class="tab-pane fade" id="user-settings">
              <div class="tile user-settings">
                <h4 class="line-head">Settings</h4>
                <?php 
                  if(isset($data['0']))
                  {
                    ?>
                     <form method="post" action="">
                 
                 <div class="row mb-4">
                   <div class="col-md-4">
                     <label> Name</label>
                     <input class="form-control" name="name" value="<?php echo $data['0']->usr ?>" type="text">
                   </div>
                   
                 </div>
                 <div class="row">
                   <div class="col-md-4">
                     <label>Email</label>
                     <input class="form-control" name="email" value="<?php echo $data['0']->email ?>" type="text">
                   </div>
                   <div class="clearfix"></div>
                   <div class="col-md-4">
                     <label>Mobile No</label>
                     <input class="form-control" name="phone" value="<?php echo $data['0']->phone?>" type="text">
                   </div>
                  <div class="clearfix"></div>
                   <div class="col-md-4">
                     <label>Address</label>
                     <input class="form-control" name="address" value="<?php echo $data['0']->address ?>" type="text">
                   </div>
                
          <div class="clearfix"></div>
                   <div class="col-md-4">
                     <label>street</label>
                     <input class="form-control" name="street" value="<?php echo $data['0']->street?>" type="text">
                   </div>
           <div class="clearfix"></div>
                   <div class="col-md-4">
                     <label>city</label>
                     <input class="form-control" name="city" value="<?php echo $data['0']->city ?>" type="text">
                   </div>
               
         <div class="clearfix"></div>
                   <div class="col-md-4">
                     <label>Pin Code</label>
                     <input class="form-control" name="pin" value="<?php echo $data['0']->pincode?>" type="text">
                   </div>
           <div class="clearfix"></div>
                   <div class="col-md-4">
                     <label>State</label>
                     <input class="form-control" name="state" value="<?php echo $data['0']->state_name?>" type="text">
                   </div>
            <div class="clearfix"></div>
                   <div class="col-md-4">
                     <label>Country</label>
                     <input class="form-control" name="country" value="<?php echo $data['0']->country_name?>" type="text">
                   </div>
                 </div>
                 <div class="row mb-10">
                   <div class="col-md-12">
                     <button class="btn btn-primary" type="button"><i class="fa fa-fw fa-lg fa-check-circle"></i> Save</button>
                   </div>
                 </div>
               </form>
                    <?php
                  }
                  ?>
               
              </div>
            </div>
			  
			  
			  <div class="tab-pane fade" id="user-services">
          <div class="row user-sub-menu-section bg-white w-100 mt-0 ml-2 mr-2">
            <div class="col-12">
              <ul class="nav nav-tabs" id="myTab" role="tablist">
                <li class="nav-item">
                  <a class="nav-link active" id="email-tab" data-toggle="tab" href="#email" role="tab" aria-controls="email" aria-selected="true"><i class="fas fa-bars"></i> ALL</a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false"><i class="fas fa-check-square"></i> ACTIVE PLANS</a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false"><i class="fas fa-exclamation-circle"></i> PENDING PLANS</a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false"><i class="fas fa-exclamation-triangle"></i> EXPIRED PLANS</a>
                </li>
              </ul>
              <div class="tab-content" id="myTabContent">
                <div class="tab-pane fade show active" id="email" role="tabpanel" aria-labelledby="email-tab">
                  <table class="table">
                    <thead class="thead-light">
                      <tr>
                        <th scope="col">Sl No.</th>
						            
                        <th scope="col">Plan Name</th>
                        <th scope="col">Status</th>
                        <th scope="col">Requested Date</th>
                        <th scope="col">Expiry Date</th>
						            <th scope="col"><th>
                        <th scope="col"></th>
                        <th scope="col"></th>
                      </tr>
                    </thead>
                    <tbody>
					         
                     
                           <tr>
         	                <th scope="row"></th>                        
		                      <td></td>
                          <td></td>
                          <td></td>
                          <td></td>
                          <td><a class="btn btn-sm btn-success" href="user-home-email-plan.php">View</a></td>
                          <td>
                         
                            <a href="invoice/" class="btn btn-sm btn-success" target="_blank">View Invoice</a>
                         
                         
                              <a class="btn btn-sm btn-success" href="invoice.php">Upload Invoice</a>
                            
                          </td>
                          
                          
                          <!--<td><a class="btn btn-sm btn-success" href="invoice/<?php// echo $inv['invoice']; ?>" target="_blank">View Invoice</a></td>-->
                        </tr>

                        
	                     
                        

                   
                    </tbody>
                  </table>
                </div>
              </div>
            </div>
          </div>
        </div>
			  
        <div class="tab-pane fade" id="user-billing">
          <div class="row user-sub-menu-section bg-white w-100 mt-0 ml-2 mr-2">
            <div class="col-12">
              <!--<ul class="nav nav-tabs" id="myTab" role="tablist">
                <li class="nav-item">
                  <a class="nav-link active" id="email-tab" data-toggle="tab" href="#email" role="tab" aria-controls="email" aria-selected="true"><i class="fas fa-bars"></i> ALL</a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false"><i class="fas fa-check-square"></i> ACTIVE PLANS</a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false"><i class="fas fa-exclamation-circle"></i> PENDING PLANS</a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false"><i class="fas fa-exclamation-triangle"></i> EXPIRED PLANS</a>
                </li>
              </ul>-->
              <!--<div class="tab-content" id="myTabContent">
                <div class="tab-pane fade show active" id="email" role="tabpanel" aria-labelledby="email-tab">
                  <table class="table">
                    <thead class="thead-light">
                      <tr>
                        <th scope="col">Invoice Number</th>
						            <th scope="col">Payment Mode</th>
                        <th scope="col">Plan Name</th>
                        <th scope="col">Bill Date</th>
                        
                        <th scope="col">Amount</th>
						            <th scope="col"><th>
                        
                      </tr>
                    </thead>
                    <tbody>
					            <?php 
					
					          // $bill=mysqli_query($con,"select * from tbl_billing where user_id='".$_REQUEST['id']."'");
                     //while($bres=mysqli_fetch_array($bill))
                    // {
                       //$pl=mysqli_query($con,"select * from tbl_order where id='".$bres['order_id']."'");
                      // $pres=mysqli_fetch_array($pl);
                      // echo "select * from tbl_service_plans where id='".$pres['plan_id']."'";
                     //  $ord=mysqli_query($con,"select * from tbl_service_plans where id='".$pres['plan_id']."'");
                      // $od=mysqli_fetch_array($ord);
                      ?>
                        <tr>
                          <th scope="row"><?php//echo $bres['invoice_no'];?></th>
                          <td><?php //echo $bres['payment_terms'];?></td>
                          <td><?php //echo $od['plan_name'];?></td>
                          <td><?php// echo $bres['bill_date'];  ?></td>
                        
                          <td><?php //echo $bres['amount'];?></td>
                          <td><a class="btn btn-sm btn-success" href="invoice.php?user=<?php// echo $bres['user_id'];?>">Upload Invoice</a></td>
                         
                        </tr>
                      <?php
                    // }
					              ?>
                        
					            
                   
                    </tbody>
                  </table>
                </div>
              </div>-->
            </div>
          </div>
        </div>
			  
      </div>
    </div>
     
	
	
	
	
</main>
<!-- Essential javascripts for application to work-->
<script src="<?php echo base_url()?>assets/js/jquery-3.3.1.min.js"></script>
<script src="<?php echo base_url()?>assets/js/popper.min.js"></script>
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js"></script>
<script src="<?php echo base_url()?>assets/js/main.js"></script>
<!-- The javascript plugin to display page loading on top-->
<script src="<?php echo base_url()?>assets/js/plugins/pace.min.js"></script>
<!-- Page specific javascripts-->
<!-- Google analytics script-->
<script type="text/javascript">
if(document.location.hostname == 'pratikborsadiya.in') {
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-72504830-1', 'auto');
  ga('send', 'pageview');
}
</script>
</body>
</html>