diff --git a/resources/views/admin/products/index.blade.php b/resources/views/admin/products/index.blade.php
index 59b0156b..bd2876fa 100644
--- a/resources/views/admin/products/index.blade.php
+++ b/resources/views/admin/products/index.blade.php
@@ -10,9 +10,8 @@
@@ -29,8 +28,7 @@
@@ -48,15 +46,14 @@
Disk |
Databases |
Backups |
- Eggs |
Nodes |
+ Eggs |
Servers |
Created at |
|
-
-
+
@@ -75,30 +72,32 @@
}
document.addEventListener("DOMContentLoaded", function () {
- $('#datatable').DataTable({
+ $("#datatable").DataTable({
processing: true,
serverSide: true,
stateSave: true,
- order: [[ 2, "asc" ]],
- ajax: "{{route('admin.products.datatable')}}",
- columns: [
- {data: 'disabled'},
- {data: 'name'},
- {data: 'price'},
- {data: 'memory'},
- {data: 'cpu'},
- {data: 'swap'},
- {data: 'disk'},
- {data: 'databases'},
- {data: 'backups'},
- {data: 'nodes', sortable: false},
- {data: 'eggs', sortable: false},
- {data: 'servers', sortable: false},
- {data: 'created_at'},
- {data: 'actions', sortable: false},
+ order: [
+ [ 2, "asc" ]
],
- fnDrawCallback: function( oSettings ) {
- $('[data-toggle="popover"]').popover();
+ ajax: "{{ route('admin.products.datatable') }}",
+ columns: [
+ {data: "disabled"},
+ {data: "name"},
+ {data: "price"},
+ {data: "memory"},
+ {data: "cpu"},
+ {data: "swap"},
+ {data: "disk"},
+ {data: "databases"},
+ {data: "backups"},
+ {data: "nodes", sortable: false},
+ {data: "eggs", sortable: false},
+ {data: "servers", sortable: false},
+ {data: "created_at"},
+ {data: "actions", sortable: false}
+ ],
+ fnDrawCallback: function (oSettings) {
+ $("[data-toggle=\"popover\"]").popover();
}
});
});