2021-06-05 09:26:32 +00:00
|
|
|
<table id="datatable" class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th width="20"></th>
|
2021-12-13 07:42:53 +00:00
|
|
|
<th>{{__('Name')}}</th>
|
|
|
|
<th>{{__('User')}}</th>
|
|
|
|
<th>{{__('Config')}}</th>
|
|
|
|
<th>{{__('Suspended at')}}</th>
|
|
|
|
<th>{{__('Created at')}}</th>
|
2021-06-05 09:26:32 +00:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function submitResult() {
|
2021-12-13 07:42:53 +00:00
|
|
|
return confirm("{{__('Are you sure you wish to delete?')}}") !== false;
|
2021-06-05 09:26:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
|
|
$('#datatable').DataTable({
|
2021-12-13 21:39:40 +00:00
|
|
|
language: {
|
|
|
|
url: '//cdn.datatables.net/plug-ins/1.11.3/i18n/{{config("app.datatable_locale")}}.json'
|
|
|
|
},
|
2021-06-05 09:26:32 +00:00
|
|
|
processing: true,
|
|
|
|
serverSide: true,
|
|
|
|
stateSave: true,
|
|
|
|
ajax: "{{route('admin.servers.datatable')}}{{$filter ?? ''}}",
|
2021-06-10 21:25:13 +00:00
|
|
|
order: [[ 5, "desc" ]],
|
2021-06-05 09:26:32 +00:00
|
|
|
columns: [
|
|
|
|
{data: 'status' , name : 'servers.suspended'},
|
|
|
|
{data: 'name'},
|
|
|
|
{data: 'user' , name : 'user.name'},
|
|
|
|
{data: 'resources' , name : 'product.name'},
|
|
|
|
{data: 'suspended'},
|
|
|
|
{data: 'created_at'},
|
|
|
|
{data: 'actions' , sortable : false},
|
|
|
|
],
|
|
|
|
fnDrawCallback: function( oSettings ) {
|
|
|
|
$('[data-toggle="popover"]').popover();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|