
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.1/themes/base/jquery-ui.css">
<main class="app-content">
<div class="app-title">
  <div>
    <h1><i class="fa fa-th-list"></i> Tax</h1>
  </div>
  <ul class="app-breadcrumb breadcrumb">
    <li class="breadcrumb-item"><i class="fa fa-home fa-lg"></i></li>
    <li class="breadcrumb-item">uers list</li>
    <li class="breadcrumb-item active"><a href="#">Home</a></li>
  </ul>
</div>
<div class="row">
  
  <div class="col-md-12">
    <div class="col-md-8">
      <div class="tile">
        <h3 class="tile-title">Tax Amount</h3>
        <div class="tile-body">
          <form name="frm" method="post" action="<?php echo base_url()?>add_tax">
            <div class="form-group">
              <label class="control-label">Date</label>
              <input class="form-control" name="date" type="text" id="datepicker" >
            </div>
            <div class="form-group">
              <label class="control-label">Amount in %</label>
              <input class="form-control" name="amount" type="text" placeholder="">
            </div>
           <!-- <div class="form-group">
              
              <label for="countrol-label">Country</label>
              <select name="country" id="country" class="form-control">
                <option value="">Select Country</option>
               <?php if(isset($country['0']))
               {
                foreach($country  as $cou)
                {
                  ?>
                  <option value="<?php echo $cou->country_id ?>"><?php echo $cou->country_name ?></option>
                  <?php
                }
               }
                ?>
              </select>
            </div>
            <div class="form-group">
                  <label class="control-label">State</label>
                  <select name="state" id="state" class="form-control">
                    <option value="">Select State</option>
                   
                    </select>
                </div>-->
			          <div class="tile-footer">
          <button class="btn btn-primary" type="submit" name="update_btn2"><i class="fa fa-fw fa-lg fa-check-circle"></i>Add Now</button>&nbsp;&nbsp;&nbsp;<a class="btn btn-secondary" href="#"><i class="fa fa-fw fa-lg fa-times-circle"></i>Cancel</a>
        </div>
          </form>

          
        </div>


        <table class="table mt-5">
            <thead>
              <tr>
                <th scope="col">#</th>
                <th scope="col">Date</th>
                <th scope="col">Tax Amount</th>
                <th scope="col">Status</th>
                <!--<th scope="col">State</th>-->
              </tr>
            </thead>
            <tbody>
			<?php 
      if(isset($data['0']))
      {
        $i=1;
        foreach($data as $row)
        {
           if(isset($state['0']))
            
          ?>
           <tr>
                <th scope="row"><?php echo $i?></th>
                <td><?php echo $row->date;?></td>
                <td><?php echo $row->rate;?>%</td>
                <td><?php $status=$row->status;
                if($status=='Y'){
                  ?>
                  <a href="<?php echo base_url()?>inactiveTax/<?php echo $row->id ?>"><?php  echo 'Active';?></a>
                  <?php
                 
                }
                else {
                  ?><a href="<?php echo base_url()?>activeTax/<?php echo $row->id?>"><?php
                  echo 'Inactive';
                } ?></a></td>
                <!--<td><?php //echo $row->state_name?></td>-->
              </tr>
          <?php
          $i++;
        }
      }
      ?>
             
				
			
            </tbody>
          </table>
      </div>
    </div>
  </div>
</div>
</main>

<!-- Essential javascripts for application to work-->
<script src="<?php base_url()?>/assets/js/jquery-3.3.1.min.js"></script>
<script src="<?php base_url()?>/assets/js/popper.min.js"></script>
<script src="<?php base_url()?>/assets/js/bootstrap.min.js"></script>
<script src="<?php base_url()?>/assets/js/main.js"></script>
<!-- The javascript plugin to display page loading on top-->
<script src="<?php base_url()?>/assets/js/plugins/pace.min.js"></script>
<!-- Page specific javascripts-->
<!-- Google analytics script-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></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>
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
  <script src="https://code.jquery.com/ui/1.13.1/jquery-ui.js"></script>
<script>
  $( function() {
    $( "#datepicker" ).datepicker({
      dateFormat:"yy-mm-dd"
    });
  } );
  </script>
<!--<script type="text/javascript">
  $(document).ready(function(){
    $('#country').change(function(){
      var country_id=$('#country').val();
      if(country_id !='')
      {
        $.ajax({
          url: "<?php// echo base_url();?>fetch_state",
          method:"post",
          data:{country_id:country_id},
          success:function(data)
          {
            $('#state').html(data);
          }
        });
      }
    });
  });
</script>-->
</body>
</html>