backend works, no save yet
This commit is contained in:
@@ -742,8 +742,7 @@ class ReportsController extends Controller
|
||||
|
||||
if(($request->filled('last_updated_before'))){
|
||||
$lastupdatedwindow = Carbon::parse(today()->subDays($request->input('last_updated_before')));
|
||||
$assets->whereBetween('assets.updated_at', [(date( "Y-m-d", 1990-01-01)), $lastupdatedwindow]);
|
||||
dd($lastupdatedwindow);
|
||||
$assets->whereBetween('assets.updated_at', [(date( "Y-m-d", 1900-01-01)), $lastupdatedwindow]);
|
||||
}
|
||||
|
||||
if ($request->filled('exclude_archived')) {
|
||||
|
||||
@@ -567,10 +567,10 @@
|
||||
|
||||
<!-- Last Updated before -->
|
||||
<div class="form-group">
|
||||
<label for="last_updated_before" class="col-md-3 control-label">{{ trans('general.updated_before' ) }}</label>
|
||||
<label for="last_updated_before" class="col-md-3 control-label">{{ trans('general.updated_before') }}</label>
|
||||
<div class="input-group col-md-3">
|
||||
{{-- <input class="form-control" type="number" name="last_updated_before" value="{{ $template->textValue('last_updated_before'), old('last_updated_before') }}" aria-label="last_updated_before">--}}
|
||||
<select>
|
||||
<select class="form-control" type="number" name="last_updated_before" value="{{ $template->textValue('last_updated_before'), old('last_updated_before') }}" aria-label="last_updated_before">
|
||||
<option value="30">30 {{ trans('general.days_ago' ) }}</option>
|
||||
<option value="60">60 {{ trans('general.days_ago' ) }}</option>
|
||||
<option value="90">90 {{ trans('general.days_ago' ) }}</option>
|
||||
|
||||
Reference in New Issue
Block a user