2016-03-25 01:18:05 -07:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
|
|
|
|
2020-04-24 05:55:38 -07:00
|
|
|
@if (request('status')=='deleted')
|
|
|
|
{{ trans('general.deleted') }}
|
|
|
|
@else
|
|
|
|
{{ trans('general.current') }}
|
|
|
|
@endif
|
|
|
|
{{ trans('general.users') }}
|
|
|
|
@parent
|
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('header_right')
|
2020-04-24 04:04:53 -07:00
|
|
|
|
2016-12-19 11:04:28 -08:00
|
|
|
@can('create', \App\Models\User::class)
|
2020-04-24 05:55:38 -07:00
|
|
|
@if ($snipeSettings->ldap_enabled == 1)
|
|
|
|
<a href="{{ route('ldap/user') }}" class="btn btn-default pull-right"><span class="fa fa-sitemap"></span> LDAP Sync</a>
|
|
|
|
@endif
|
|
|
|
<a href="{{ route('users.create') }}" class="btn btn-primary pull-right" style="margin-right: 5px;"> {{ trans('general.create') }}</a>
|
2016-08-02 00:54:38 -07:00
|
|
|
@endcan
|
|
|
|
|
2020-04-24 05:55:38 -07:00
|
|
|
@if (request('status')=='deleted')
|
|
|
|
<a class="btn btn-default pull-right" href="{{ route('users.index') }}" style="margin-right: 5px;">{{ trans('admin/users/table.show_current') }}</a>
|
2016-12-27 12:03:47 -08:00
|
|
|
@else
|
2020-04-24 05:55:38 -07:00
|
|
|
<a class="btn btn-default pull-right" href="{{ route('users.index', ['status' => 'deleted']) }}" style="margin-right: 5px;">{{ trans('admin/users/table.show_deleted') }}</a>
|
2016-12-27 12:03:47 -08:00
|
|
|
@endif
|
2016-12-19 11:04:28 -08:00
|
|
|
@can('view', \App\Models\User::class)
|
2016-12-22 15:53:34 -08:00
|
|
|
<a class="btn btn-default pull-right" href="{{ route('users.export') }}" style="margin-right: 5px;">Export</a>
|
2016-10-25 02:41:34 -07:00
|
|
|
@endcan
|
2016-03-25 01:18:05 -07:00
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="box box-default">
|
|
|
|
<div class="box-body">
|
|
|
|
{{ Form::open([
|
|
|
|
'method' => 'POST',
|
|
|
|
'route' => ['users/bulkedit'],
|
2017-01-18 07:40:40 -08:00
|
|
|
'class' => 'form-inline',
|
2017-01-18 19:28:35 -08:00
|
|
|
'id' => 'bulkForm']) }}
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2020-08-31 17:18:09 -07:00
|
|
|
@if (request('status')!='deleted')
|
2016-12-27 12:03:47 -08:00
|
|
|
@can('delete', \App\Models\User::class)
|
|
|
|
<div id="toolbar">
|
2020-03-31 22:50:14 -07:00
|
|
|
<label for="bulk_actions" class="sr-only">Bulk Actions</label>
|
|
|
|
<select name="bulk_actions" class="form-control select2" style="width: 200px;" aria-label="bulk_actions">
|
2017-03-03 17:17:51 -08:00
|
|
|
<option value="delete">Bulk Checkin & Delete</option>
|
2017-03-10 20:07:44 -08:00
|
|
|
<option value="edit">Bulk Edit</option>
|
2021-05-26 15:32:23 -07:00
|
|
|
<option value="bulkpasswordreset">{{ trans('button.send_password_link') }}</option>
|
2016-12-27 12:03:47 -08:00
|
|
|
</select>
|
|
|
|
<button class="btn btn-default" id="bulkEdit" disabled>Go</button>
|
|
|
|
</div>
|
|
|
|
@endcan
|
2016-05-12 21:01:31 -07:00
|
|
|
@endif
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2018-02-16 13:22:55 -08:00
|
|
|
|
|
|
|
<table
|
|
|
|
data-click-to-select="true"
|
|
|
|
data-columns="{{ \App\Presenters\UserPresenter::dataTableLayout() }}"
|
|
|
|
data-cookie-id-table="usersTable"
|
|
|
|
data-pagination="true"
|
|
|
|
data-id-table="usersTable"
|
|
|
|
data-search="true"
|
|
|
|
data-side-pagination="server"
|
|
|
|
data-show-columns="true"
|
|
|
|
data-show-export="true"
|
|
|
|
data-show-refresh="true"
|
|
|
|
data-sort-order="asc"
|
|
|
|
data-toolbar="#toolbar"
|
|
|
|
id="usersTable"
|
|
|
|
class="table table-striped snipe-table"
|
|
|
|
data-url="{{ route('api.users.index',
|
2020-05-11 20:28:24 -07:00
|
|
|
array('deleted'=> (request('status')=='deleted') ? 'true' : 'false','company_id' => e(request('company_id')))) }}"
|
2018-02-16 13:22:55 -08:00
|
|
|
data-export-options='{
|
|
|
|
"fileName": "export-users-{{ date('Y-m-d') }}",
|
|
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
|
|
}'>
|
2020-04-24 05:55:38 -07:00
|
|
|
</table>
|
2017-02-03 22:20:11 -08:00
|
|
|
|
2017-01-18 07:40:40 -08:00
|
|
|
|
2020-04-24 05:55:38 -07:00
|
|
|
{{ Form::close() }}
|
|
|
|
</div><!-- /.box-body -->
|
|
|
|
</div><!-- /.box -->
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
@stop
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2020-04-24 04:27:00 -07:00
|
|
|
@section('moar_scripts')
|
2020-04-24 04:04:53 -07:00
|
|
|
|
|
|
|
|
2018-02-16 13:22:55 -08:00
|
|
|
@include ('partials.bootstrap-table')
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2017-01-18 07:40:40 -08:00
|
|
|
|
2020-04-24 05:55:38 -07:00
|
|
|
@stop
|