mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Add Maintained filed in licenses view and api. + Expires in API
This commit is contained in:
parent
cdc4940338
commit
976957ddd4
|
@ -77,6 +77,13 @@ class LicensesController extends Controller
|
|||
$licenses->where('supplier_id','=',$request->input('supplier_id'));
|
||||
}
|
||||
|
||||
if (($request->filled('maintained')) && ($request->input('maintained')=='true')) {
|
||||
$licenses->where('maintained','=',1);
|
||||
}
|
||||
|
||||
if (($request->filled('expires')) && ($request->input('expires')=='true')) {
|
||||
$licenses->whereNotNull('expiration_date');
|
||||
}
|
||||
|
||||
if ($request->filled('search')) {
|
||||
$licenses = $licenses->TextSearch($request->input('search'));
|
||||
|
|
|
@ -285,6 +285,17 @@
|
|||
</div>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<strong>
|
||||
{{ trans('admin/licenses/form.maintained') }}
|
||||
</strong>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
{{ $license->maintained ? 'Yes' : 'No' }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (($license->seats) && ($license->seats) > 0)
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
|
|
Loading…
Reference in a new issue