
<div class="table-actions-wrapper">
	<span>
	</span>
	<a class="btn btn-sm green table-group-action-filter" data-toggle="modal" href="#modal_filter"><i class="fa fa-filter"></i> Filter</a>
	<button class="btn btn-sm red table-group-action-filter filter-cancel"><i class="fa fa-remove"></i> Reset Filter</button>
</div>
<table class="table table-striped table-bordered table-hover" data-disable-sorting="[0]" data-column-sorting="0" data-dir-sorting="desc" id="tbl_bill_email" data-url="<?= base_url('bill/email_ajax') ?>">
	<thead>
	<tr role="row" class="heading">
		<th width="2%">
			<input type="checkbox" class="group-checkable">
		</th>
		<th>
			Bill No.
		</th>
		<th>
			Unit Owner Name
		</th>
		<th>
			Unit Number
		</th>
		<th>
			Email
		</th>
		<th>
			Invoice Date
		</th>
		<th>
			Invoice Due Date
		</th>
		<th>
			Amount Of Bill &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		</th>
		<th>
			Status
		</th>
	</tr>
	
	</thead>
	<tbody>
	</tbody>
</table>

<div id="modal_filter" class="modal fade" tabindex="-1">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
		<h4 class="modal-title">Form Filter</h4>
	</div>
	<div class="modal-body form">

		<form class="form-horizontal">
			<div class="form-body">

				<div class="form-group">
					<label class="col-md-4 control-label">Bill No.</label>
					<div class="col-md-6">
						<input type="text" class="form-control form-filter" name="bill_code">
					</div>
				</div>

				<div class="form-group">
					<label class="col-md-4 control-label">Unit Owner Name</label>
					<div class="col-md-6">
						<input type="text" class="form-control form-filter" name="occupant_name">
					</div>
				</div>

				<div class="form-group">
					<label class="col-md-4 control-label">Unit Number</label>
					<div class="col-md-6">
						<input type="text" class="form-control form-filter" name="unit_name">
					</div>
				</div>

				<div class="form-group">
					<label class="col-md-4 control-label">Invoice Date</label>
					<div class="col-md-4">
						<div class="input-group date date-picker" data-date-format="dd-mm-yyyy">
							<input type="text" class="form-control form-filter" name="bill_date_start" readonly>
							<span class="input-group-btn">
								<button class="btn default" type="button"><i class="fa fa-calendar"></i></button>
							</span>
						</div>
					</div>
					<div class="col-md-4">
						<div class="input-group date date-picker" data-date-format="dd-mm-yyyy">
							<input type="text" class="form-control form-filter" name="bill_date_end" readonly>
							<span class="input-group-btn">
								<button class="btn default" type="button"><i class="fa fa-calendar"></i></button>
							</span>
						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="col-md-4 control-label">Invoice Due Date</label>
					<div class="col-md-4">
						<div class="input-group date date-picker" data-date-format="dd-mm-yyyy">
							<input type="text" class="form-control form-filter" name="bill_due_date_start" readonly>
							<span class="input-group-btn">
								<button class="btn default" type="button"><i class="fa fa-calendar"></i></button>
							</span>
						</div>
					</div>
					<div class="col-md-4">
						<div class="input-group date date-picker" data-date-format="dd-mm-yyyy">
							<input type="text" class="form-control form-filter" name="bill_due_date_end" readonly>
							<span class="input-group-btn">
								<button class="btn default" type="button"><i class="fa fa-calendar"></i></button>
							</span>
						</div>
					</div>
				</div>

			</div>
		</form>

		
	</div>
	<div class="modal-footer">
		<button type="button" data-dismiss="modal" class="btn btn-default">Cancel</button>
		<button type="button" class="btn blue filter-submit">Filter</button>
	</div>
</div>

<script type="text/javascript">
	jQuery(document).ready(function() {   
		TableAjax.init('#tbl_bill_email')
		CustomForm.init()
	})
</script>

