<div class="row" style="margin-bottom: 25px;">
	<div class="col-xs-12 col-md-3">
		<form name="form" class="form-inline" ng-submit="WOVERWC._filter()">
			<div class="form-group">
				<div class="input-group">
					<span class="input-group-addon">
						<i class="ti ti-calendar"></i>
					</span>
					<input type="text" ng-focus="WOVERWC._openCalendar($event, 'date_start')" class="form-control datepicker" is-open="WOVERWC.calendar_opened['date_start']" datepicker-popup="MM/dd/yyyy" close-text="Close" name="date_start" id="date_start" ng-model="WOVERWC.date_start" placeholder="Date" ng-required="true">
				</div>
			</div>
			<div class="form-group">
				<button type="submit" ng-disabled="!form.$valid || WOVERWC.loading" class="btn btn-primary">Filter</button>
			</div>
		</form>
	</div>
	<div class="col-xs-12 col-md-9">
		<ui-select multiple ng-model="WOVERWC._selectedEmployees" ng-disabled="disabled" style="width: 100%">
			<ui-select-match placeholder="Select an employee...">
				{{$item.name}}
			</ui-select-match>
			<ui-select-choices repeat="employee.name as employee in WOVERWC._employees | filter: $select.search">
				<span ng-bind-html="employee.name | highlight: $select.search"></span>
			</ui-select-choices>
		</ui-select>
	</div>
</div>
<flot dataset="WOVERWC._sourceChartBar.dataset" options="WOVERWC._sourceChartBar.options" height="250px" ng-if="!WOVERWC.loading"></flot>
<div class="table-responsive" style="margin-top: 25px;" ng-if="!WOVERWC.loading">
	<table class="table">
		<thead>
			<tr>
				<th>Employee</th>
				<th ng-repeat="date in WOVERWC._sourceChartBar.dataset[0].data">{{date[2]}}</th>
				<th style="background-color: #F9F9F9;">TOTAL</th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="report in WOVERWC._filteredDataSet = (WOVERWC._sourceChartBar.dataset | filter: WOVERWC._filterByEmployees) track by $index">
				<td>{{report.label}}</td>
				<td ng-repeat="data in report.data">{{data[1]}}</td>
				<td style="background-color: #F9F9F9;">{{report.total}}</td>
			</tr>
		</tbody>
	</table>
</div>