 <link href="<?php echo base_url();?>admin_assets/plugins/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
  <div class="body-content">
            <div class="row">
                <div class="col-md-12">
                	<?php if($this->session->flashdata("msg")!==""){echo $this->session->flashdata("msg"); }?>
                    <div class="card mb-4">
                        <div class="card-header">
                            <div class="d-flex justify-content-between align-items-center">
                            <h6 class="fs-17 font-weight-600 mb-0 text-center">
                            <i class="fa fa-list"></i> <?php echo $this->session->userdata("biztype");?> Sales Tax Sheet</h6>
                            </div>
                        </div>
                        <style>
						.table td, .table th{padding:5px 5px;}.form-group{margin-bottom:0px;}.form-control{height:30px;}label{font-size:12px;margin-bottom:0px;}
						.table2 .form-control{width:100px;}
						</style>
                        <div class="card-body">
                        	<form action="<?php echo base_url().'admin/gas_submit';?>" method="post">
                        	<?php $months=array();$cur_month=date("M-Y");
							$this->db->select("*");
							$this->db->from("clients");
							$this->db->join("locations","locations.loc_id=clients.client_location");
							$this->db->where("clients.client_id",$this->session->userdata("userid"));
							$cldata=$this->db->get()->row();
							$tax_rate=$cldata->loc_tax;?>
                            <input type="hidden" name="tax_month" value="<?php echo $cur_month;?>" />
                            <input type="hidden" name="tax_perct" value="<?php echo $tax_rate;?>" />
                            <b>Sales and Sales Tax Information should match with Cash Register Print Out or other Documents</b>
                            <table class="table table-condensed table-bordered table2">
                                <tr bgcolor="#CCCCCC"><th>Item</th>
                                <?php foreach($history as $h){
									array_push($months,$h->tax_month);?><th><?php echo $h->tax_month;?></th><?php }if(!in_array($cur_month,$months)){?>
                                <th><?php echo $cur_month;?></th><?php }?></tr>
                                <tr><td>Gasoline Gals</td>
									<?php foreach($history as $h){?><td><?php echo $h->gasoline_gals;?></td><?php }
									if(!in_array($cur_month,$months)){?>
                                	<td><input type="text" class="form-control" name="gasoline_gals" /></td><?php }?></tr>
                                <tr><td>Gasoline $$$</td>
                                	<?php foreach($history as $h){?><td><?php echo $h->gasoline;?></td><?php }if(!in_array($cur_month,$months)){?>
                                	<td><input type="text" class="form-control inputs" name="gasoline" /></td><?php }?></tr>
                                <tr><td>Cigarettes</td>
                                	<?php foreach($history as $h){?><td><?php echo $h->cigrate;?></td><?php }if(!in_array($cur_month,$months)){?>
                                	<td><input type="text" class="form-control inputs" name="cigrate" /></td><?php }?></tr>
                                <tr><td>Grocery</td>
                                	<?php foreach($history as $h){?><td><?php echo $h->grocery;?></td><?php }if(!in_array($cur_month,$months)){?>
                                	<td><input type="text" class="form-control inputs" name="grocery" /></td><?php }?></tr>
                                <tr bgcolor="#CCCCCC"><td>Total Sales</td>
                                	<?php foreach($history as $h){?><td><?php echo $h->total_sales;?></td><?php }if(!in_array($cur_month,$months)){?>
                                	<td><input readonly="readonly" id="total_sales" type="text" class="form-control" name="total_sales" /></td><?php }?>
                                    </tr>
                                <tr bgcolor="#FF9933"><th>Sales Tax</th>
                                	<?php foreach($history as $h){?><td><?php echo $h->total_tax;?></td><?php }if(!in_array($cur_month,$months)){?>
                                	<td>
                                    <button type="submit" class="btn btn-primary btn-sm float-right">Save</button>
                                    <input id="total_tax" type="text" class="form-control" name="total_tax" />
                                    </td><?php }?>
                                    </tr>
                            </table>
                            </form>
                            <p>State Sales Tax Division enforce every business owners to file and pay Use Tax for items that you
buy for business/personal using BUSINESS TAX ID # without paying sales tax. We are required
to report any such purchases and pay Use Tax. Please complete the following:</p>
							<!--<table class="table table-condensed table-bordered table2">
                            	<tr><th></th><th>Retails Store</th><th>Internet</th></tr>
                               	<tr><td>Amount you paid for supplies/ merchandize used for your
                                        business (not for resale) including from Internet</td>
                                    <td><input type="text" class="form-control" name="bis_amt"/></td>
                                    <td><input type="text" class="form-control" name="bis_internet"/></td></tr>
                                <tr><td>Amount you paid for supplies/ merchandize used for your
                                    personal (not for resale) including from Internet</td>
                                    <td><input type="text" class="form-control" name="per_amt"/></td>
                                    <td><input type="text" class="form-control" name="per_internet"/></td></tr>
                            </table>-->	
                        </div>
                     </div>
                </div> 
                 
            </div>
                         
                    </div><!--/.body content-->
                </div><!--/.main content-->
                
                
                

                <footer class="footer-content">
                    <div class="footer-text d-flex align-items-center justify-content-between">
                        <div class="copy">© 2020 CRM</div>
                    </div>
                </footer><!--/.footer content-->
                <div class="overlay"></div>
            </div><!--/.wrapper-->
        </div>
        <!--Global script(used by all pages)-->
        <script src="<?php echo base_url();?>admin_assets/dist/js/popper.min.js"></script>
        <script>
		$(document).ready(function(){
			$(".inputs").keyup(function(){
				var sum = 0;
				$("input[class *= 'inputs']").each(function(){
					sum += +$(this).val();
				});
				var tax=sum*<?php echo $tax_rate;?>/100;
				$("#total_sales").val(sum);
				$("#total_tax").val(tax);
			});
		});
		</script>
        <script src="<?php echo base_url();?>admin_assets/plugins/bootstrap/js/bootstrap.min.js"></script>
        <script src="<?php echo base_url();?>admin_assets/plugins/metisMenu/metisMenu.min.js"></script>
        <script src="<?php echo base_url();?>admin_assets/plugins/perfect-scrollbar/dist/perfect-scrollbar.min.js"></script>
        <!-- Third Party Scripts(used by this page)-->
        <script src="<?php echo base_url();?>admin_assets/plugins/datatables/dataTables.min.js"></script>
        <script src="<?php echo base_url();?>admin_assets/plugins/datatables/dataTables.bootstrap4.min.js"></script>
        <!--Page Active Scripts(used by this page)-->
        <script src="<?php echo base_url();?>admin_assets/plugins/datatables/data-basic.active.js"></script>
        <!--Page Scripts(used by all page)-->
        <script src="<?php echo base_url();?>admin_assets/dist/js/sidebar.js"></script>
    </body>

<!-- Mirrored from bhulua.thememinister.com/tables_data_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 28 Sep 2019 13:44:34 GMT -->
</html>