adding eol fields
This commit is contained in:
parent
499a3debcd
commit
f71b69a739
2 changed files with 7 additions and 7 deletions
|
@ -649,8 +649,8 @@ class ReportsController extends Controller
|
||||||
$assets->whereBetween('assets.expected_checkin', [$request->input('expected_checkin_start'), $request->input('expected_checkin_end')]);
|
$assets->whereBetween('assets.expected_checkin', [$request->input('expected_checkin_start'), $request->input('expected_checkin_end')]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($request->filled('eol')) && ($request->filled('eol'))) {
|
if (($request->filled('asset_eol_date_start')) && ($request->filled('asset_eol_date_end'))) {
|
||||||
$assets->whereBetween('assets.eol', [$request->input('eol_start'), $request->input('eol_end')]);
|
$assets->whereBetween('assets.asset_eol_date', [$request->input('asset_eol_date_start'), $request->input('asset_eol_date_end')]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($request->filled('last_audit_start')) && ($request->filled('last_audit_end'))) {
|
if (($request->filled('last_audit_start')) && ($request->filled('last_audit_end'))) {
|
||||||
|
|
|
@ -304,12 +304,12 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- EoL Date -->
|
<!-- EoL Date -->
|
||||||
<div class="form-group eol-range">
|
<div class="form-group asset_eol_date-range">
|
||||||
<label for="eol" class="col-md-3 control-label">{{ trans('admin/hardware/form.eol_date') }}</label>
|
<label for="asset_eol_date" class="col-md-3 control-label">{{ trans('admin/hardware/form.eol_date') }}</label>
|
||||||
<div class="input-daterange input-group col-md-6" id="datepicker">
|
<div class="input-daterange input-group col-md-6" id="datepicker">
|
||||||
<input type="text" class="form-control" name="eol_start" aria-label="eol_start">
|
<input type="text" class="form-control" name="asset_eol_date_start" aria-label="asset_eol_date_start">
|
||||||
<span class="input-group-addon">to</span>
|
<span class="input-group-addon">to</span>
|
||||||
<input type="text" class="form-control" name="eol_end" aria-label="eol_end">
|
<input type="text" class="form-control" name="asset_eol_date_end" aria-label="asset_eol_date_end">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -401,7 +401,7 @@
|
||||||
format: 'yyyy-mm-dd'
|
format: 'yyyy-mm-dd'
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.eol-range .input-daterange').datepicker({
|
$('.asset_eol_date-range .input-daterange').datepicker({
|
||||||
clearBtn: true,
|
clearBtn: true,
|
||||||
todayHighlight: true,
|
todayHighlight: true,
|
||||||
format: 'yyyy-mm-dd'
|
format: 'yyyy-mm-dd'
|
||||||
|
|
Loading…
Add table
Reference in a new issue