<?php
  	session_start();
  	include("library/conn.php");
?>
<!DOCTYPE html>
<html lang="en">
  	<head>
 		<?php include("library/head.php");?>
	 	<title>Expenses Report | <?php echo $_SESSION['systemName']; ?></title>
  	</head>
  	<body class="app sidebar-mini">

		<!-- Navbar-->
		<?php include("library/header.php");?>
		<!-- Sidebar menu-->
		<div class="app-sidebar__overlay" data-toggle="sidebar"></div>
		<?php include("library/sidebar.php");?>
		
		<main class="app-content">
			<div class="app-title">
				<div>
					<h3><i class="fa fa-file-text-o"></i> <b> EXPENSES REPORT</b></h3>
					<p>Expenses Report Page</p>
				</div>
				<ul class="app-breadcrumb breadcrumb">
					<li class="breadcrumb-item"><i class="fa fa-home fa-lg"></i></li>
					<li class="breadcrumb-item"><a href="expenses-report">Expenses Report</a></li>
				</ul>
			</div>
		
			<?php include("models/admin_config.php");?>
			<?php include("models/system_config.php");?>

			<div class="tile">
				<div class="tile-body">
                    <form action="#" method="POST" id="searchExpensesReportForm">
						<div class="row">
                            <div class="form-group col-md-3">
                                <label class="control-label">Expense Type</label>
                                <select class="form-control" style="width: 100%;" name="cmbExpenseTypeSearchExpensesReport" id="cmbExpenseTypeSearchExpensesReport">
                                    <option value="">All (General)</option>
                                    <option value="Marketing">Marketing</option>
                                    <option value="Utilaty">Utilaty</option>
                                    <option value="Consultation">Consultation</option>
                                    <option value="Mantainance">Mantainance</option>
                                    <option value="Wages">Wages</option>
                                    <option value="Food Expanses">Food Expanses</option>
                                    <option value="Office Supply">Office Supply</option> 
                                    <option value="Course Materials">Course Materials</option> 
                                    <option value="Cleaning Expanses ">Cleaning Expanses</option> 
                                    <option value="Refershment">Refershment</option> 
                                    <option value="Other Expanses">Other Expanses</option>
                                </select>
                            </div>
                            <div class="form-group col-md-2">
								<label class="control-label">Date</label>
								<select class="form-control" name="cmbCustomDateSearchExpensesReport" id="cmbCustomDateSearchExpensesReport" style="width: 100%;">
                                    <option value="0">All Date</option>
                                    <option value="1">Today</option>
                                    <option value="2">Yesterday</option>
                                    <option value="3">Last 3 Days</option>
                                    <option value="4">This Week</option>
                                    <option value="5">Last 10 Days</option>
                                    <option value="6">This Month</option>
                                    <option value="7">This Year</option>
                                    <option value="8">Custom Date</option>
								</select>
							</div>
                            <div class="form-group col-md-3">
								<label class="control-label">From Date</label>
								<input class="form-control" type="date" name="txtFromDateSearchExpensesReport" id="txtFromDateSearchExpensesReport" />

								</input>
							</div>
                            <div class="form-group col-md-3">
								<label class="control-label">To Date</label>
								<input class="form-control" type="date" name="txtToDateSearchExpensesReport" id="txtToDateSearchExpensesReport" />

								</input>
							</div>
							<div class="form-group col-md-1 text-right">
								<label class="control-label">&nbsp;</label><br>
								<button type="submit" class="btn btn-primary col-md-12" name="btnSearchExpensesReport" id="btnSearchExpensesReport"><i class="fa fa-search" style="font-size: 18px; margin-left: 5px; margin-bottom: 3px;"></i></button>
							</div>
						</div>	
					</form>
				</div>
			</div>

			<div id="expensesReportSection">
				
			</div>
		
		</main>
	
		<!-- Essential javascripts for application to work-->
		<?php include("library/footer.php");?>	    	
		<?php include("library/scripts.php"); ?>
		<script type="text/javascript"> $("#cmbExpenseTypeSearchExpensesReport, #cmbCustomDateSearchExpensesReport").select2( {tags: false});</script>
		
  </body>
</html>