
<div class="ibox">
	<div class="ibox-title">
		<div class="ibox-tools">
			<h5>Filters</h5>

		<a data-toggle="collapse" href="#collapseFilter" class="collapse-link"
				aria-controls="collapseFilter"> <i class="icon icon-e-add"></i></a>
			</div>
	</div>
	<div class="collapse in" id="collapseFilter">
		<div class="ibox-content">
			<form method="post" id="search-form">
				{{ csrf_field() }}
                <input type="hidden" name="month" value="{{ $filters['month'] }}">
                <input type="hidden" name="year" value="{{ $filters['year'] }}">
                <input type="hidden" name="type" value="{{ $filters['type'] }}">
				<div class="row">
					<div class="col-md-3">
						<div class="form-group">
							<label class="control-label">Asset Tag #</label>
							<select class="filter-field form-control" multiple name="asset_tag" id="asset_tag" key="asset_tag" data-placeholder="Select">
							</select>
						</div>
					</div>
					<div class="col-md-3">
						<div class="form-group">
							<label class="control-label">Serial #</label>
							<select class="filter-field form-control" multiple name="serial_no" id="serial_no" key="serial_no" data-placeholder="Select">
							</select>
						</div>
					</div>
					<div class="col-sm-3 divHeight">
						<div class="form-group">
							<label class="control-label">User Name / Email / Employee ID</label>
							<input type="text" class="form-control" name="employee_name" id="employee_name" placeholder="Search by Name/Email/Employee ID" autocomplete="off">
						</div>
					</div>
					<div class="col-sm-3  divHeight">
						<div class="form-group">
							<label class="control-label">User Type</label>
							<select class="chosen-select" id="employee_type" multiple name="employee_type"
								data-placeholder="Select">
								@foreach(\App\Models\EmployeeType::has('users')->orderBy('name')->where('slug','!=', 'full_time')->get() as $type)
								<option value="{{$type->id}}">{{$type->name}}</option>
								@endforeach
							</select>
						</div>
					</div>
					<div class="col-sm-3  divHeight">
						<div class="form-group">
							<label class="control-label">Department</label>
							<select class="chosen-select" multiple name="department" id="department" data-placeholder="Select">
							@foreach(\App\Models\Department::orderBy('name')->get() as $department)
								<option value="{{$department->id}}">{{$department->name}}</option>
							@endforeach
							</select>
						</div>
					</div>
					<div class="col-sm-3  divHeight">
						<div class="form-group">
							<label class="control-label">Work Location</label>
							<select class="filter-field-location form-control" multiple name="work_location" id="work_location" key="city" data-placeholder="Select"></select>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
