diff --git a/resources/views/admin/products/index.blade.php b/resources/views/admin/products/index.blade.php
index 59b0156b..fdc559c2 100644
--- a/resources/views/admin/products/index.blade.php
+++ b/resources/views/admin/products/index.blade.php
@@ -10,9 +10,9 @@
@@ -29,7 +29,7 @@
@@ -38,22 +38,22 @@
-
- Active |
- Name |
- Price |
- Memory |
- Cpu |
- Swap |
- Disk |
- Databases |
- Backups |
- Eggs |
- Nodes |
- Servers |
- Created at |
- |
-
+
+ Active |
+ Name |
+ Price |
+ Memory |
+ Cpu |
+ Swap |
+ Disk |
+ Databases |
+ Backups |
+ Nodes |
+ Eggs |
+ Servers |
+ Created at |
+ |
+
@@ -74,30 +74,63 @@
return confirm("Are you sure you wish to delete?") !== false;
}
- document.addEventListener("DOMContentLoaded", function () {
+ document.addEventListener("DOMContentLoaded", function() {
$('#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 ) {
+ 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();
}
});