|
@@ -246,9 +246,22 @@
|
|
<h5 class="card-title"><i class="fas fa-server mr-2"></i>{{__('Servers')}}</h5>
|
|
<h5 class="card-title"><i class="fas fa-server mr-2"></i>{{__('Servers')}}</h5>
|
|
</div>
|
|
</div>
|
|
<div class="card-body table-responsive">
|
|
<div class="card-body table-responsive">
|
|
-
|
|
|
|
- @include('admin.servers.table' , ['filter' => '?user=' . $user->id])
|
|
|
|
-
|
|
|
|
|
|
+ <table id="datatable" class="table table-striped">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th width="20"></th>
|
|
|
|
+ <th>{{__('Name')}}</th>
|
|
|
|
+ <th>{{__('User')}}</th>
|
|
|
|
+ <th>{{__('Server id')}}</th>
|
|
|
|
+ <th>{{__('Config')}}</th>
|
|
|
|
+ <th>{{__('Suspended at')}}</th>
|
|
|
|
+ <th>{{__('Created at')}}</th>
|
|
|
|
+ <th></th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@@ -291,3 +304,31 @@
|
|
<!-- END CONTENT -->
|
|
<!-- END CONTENT -->
|
|
|
|
|
|
@endsection
|
|
@endsection
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+ document.addEventListener("DOMContentLoaded", function () {
|
|
|
|
+ $('#datatable').DataTable({
|
|
|
|
+ language: {
|
|
|
|
+ url: '//cdn.datatables.net/plug-ins/1.11.3/i18n/{{ $locale_datatables }}.json'
|
|
|
|
+ },
|
|
|
|
+ processing: true,
|
|
|
|
+ serverSide: true,
|
|
|
|
+ stateSave: true,
|
|
|
|
+ ajax: "{{route('admin.servers.datatable')}}?user={{ $user->id }}",
|
|
|
|
+ order: [[ 5, "desc" ]],
|
|
|
|
+ columns: [
|
|
|
|
+ {data: 'status' , name : 'servers.suspended'},
|
|
|
|
+ {data: 'name'},
|
|
|
|
+ {data: 'user' , name : 'user.name'},
|
|
|
|
+ {data: 'identifier'},
|
|
|
|
+ {data: 'resources' , name : 'product.name'},
|
|
|
|
+ {data: 'suspended'},
|
|
|
|
+ {data: 'created_at'},
|
|
|
|
+ {data: 'actions' , sortable : false},
|
|
|
|
+ ],
|
|
|
|
+ fnDrawCallback: function( oSettings ) {
|
|
|
|
+ $('[data-toggle="popover"]').popover();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+</script>
|