Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 89 lines (79 sloc) 3.88 KB
@extends ('backend.layouts.app')
@section ('title', trans('labels.backend.access.users.management'))
@section('after-styles')
{{ Html::style("css/backend/plugin/datatables/dataTables.bootstrap.min.css") }}
@stop
@section('page-header')
<h1>
{{ trans('labels.backend.access.users.management') }}
<small>{{ trans('labels.backend.access.users.active') }}</small>
</h1>
@endsection
@section('content')
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">{{ trans('labels.backend.access.users.active') }}</h3>
<div class="box-tools pull-right">
@include('backend.access.includes.partials.user-header-buttons')
</div><!--box-tools pull-right-->
</div><!-- /.box-header -->
<div class="box-body">
<div class="table-responsive">
<table id="users-table" class="table table-condensed table-hover">
<thead>
<tr>
<th>{{ trans('labels.backend.access.users.table.id') }}</th>
<th>{{ trans('labels.backend.access.users.table.name') }}</th>
<th>{{ trans('labels.backend.access.users.table.email') }}</th>
<th>{{ trans('labels.backend.access.users.table.confirmed') }}</th>
<th>{{ trans('labels.backend.access.users.table.roles') }}</th>
<th>{{ trans('labels.backend.access.users.table.created') }}</th>
<th>{{ trans('labels.backend.access.users.table.last_updated') }}</th>
<th>{{ trans('labels.general.actions') }}</th>
</tr>
</thead>
</table>
</div><!--table-responsive-->
</div><!-- /.box-body -->
</div><!--box-->
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">{{ trans('history.backend.recent_history') }}</h3>
<div class="box-tools pull-right">
<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
</div><!-- /.box tools -->
</div><!-- /.box-header -->
<div class="box-body">
{!! history()->renderType('User') !!}
</div><!-- /.box-body -->
</div><!--box box-success-->
@stop
@section('after-scripts')
{{ Html::script("js/backend/plugin/datatables/jquery.dataTables.min.js") }}
{{ Html::script("js/backend/plugin/datatables/dataTables.bootstrap.min.js") }}
<script>
$(function() {
$('#users-table').DataTable({
processing: true,
serverSide: true,
ajax: {
url: '{{ route("admin.access.user.get") }}',
type: 'post',
data: {status: 1, trashed: false}
},
columns: [
{data: 'id', name: '{{config('access.users_table')}}.id'},
{data: 'name', name: '{{config('access.users_table')}}.name', render: $.fn.dataTable.render.text()},
{data: 'email', name: '{{config('access.users_table')}}.email', render: $.fn.dataTable.render.text()},
{data: 'confirmed', name: '{{config('access.users_table')}}.confirmed'},
{data: 'roles', name: '{{config('access.roles_table')}}.name', sortable: false},
{data: 'created_at', name: '{{config('access.users_table')}}.created_at'},
{data: 'updated_at', name: '{{config('access.users_table')}}.updated_at'},
{data: 'actions', name: 'actions', searchable: false, sortable: false}
],
order: [[0, "asc"]],
searchDelay: 500
});
});
</script>
@stop