Skip to content

Commit

Permalink
change filtered set default filter on Report list..
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Jun 2, 2021
1 parent 27c4db0 commit 022eb98
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions resources/views/partials/reports/filter.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
]) !!}
@php
$filters = [];
$filtered = [];
$skipped = [
'keys', 'names', 'types', 'routes'
];
Expand Down Expand Up @@ -63,13 +65,15 @@
'url' => $url,
'values' => $filter_values,
];
}
$filtered[] = [
'option' => 'year',
'operator' => '=',
'value' => \Date::now()->year,
];
if ($key == 'year') {
$filtered[] = [
'option' => $key,
'operator' => '=',
'value' => \Date::now()->year,
];
}
}
@endphp

<div class="align-items-center">
Expand Down

0 comments on commit 022eb98

Please sign in to comment.