2021-06-05 09:26:32 +00:00
|
|
|
@extends('layouts.main')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<!-- CONTENT HEADER -->
|
|
|
|
<section class="content-header">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row mb-2">
|
|
|
|
<div class="col-sm-6">
|
2021-12-13 07:42:53 +00:00
|
|
|
<h1>{{__('Products')}}</h1>
|
2021-06-05 09:26:32 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<ol class="breadcrumb float-sm-right">
|
2021-12-13 07:42:53 +00:00
|
|
|
<li class="breadcrumb-item"><a href="{{route('home')}}">{{__('Dashboard')}}</a></li>
|
2021-06-05 09:26:32 +00:00
|
|
|
<li class="breadcrumb-item"><a class="text-muted"
|
2021-12-14 15:08:51 +00:00
|
|
|
href="{{route('admin.products.index')}}">{{__('Products')}}</a>
|
|
|
|
</li>
|
2021-06-05 09:26:32 +00:00
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<!-- END CONTENT HEADER -->
|
|
|
|
|
|
|
|
<!-- MAIN CONTENT -->
|
|
|
|
<section class="content">
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
|
|
<div class="card-header">
|
|
|
|
<div class="d-flex justify-content-between">
|
2021-12-14 15:06:45 +00:00
|
|
|
|
2021-12-13 07:42:53 +00:00
|
|
|
<h5 class="card-title"><i class="fas fa-sliders-h mr-2"></i>{{__('Products')}}</h5>
|
2021-06-05 09:26:32 +00:00
|
|
|
<a href="{{route('admin.products.create')}}" class="btn btn-sm btn-primary"><i
|
2021-12-13 07:42:53 +00:00
|
|
|
class="fas fa-plus mr-1"></i>{{__('Create new')}}</a>
|
2021-06-05 09:26:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body table-responsive">
|
|
|
|
|
|
|
|
<table id="datatable" class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-12-13 07:42:53 +00:00
|
|
|
<th>{{__('Active')}}</th>
|
|
|
|
<th>{{__('Name')}}</th>
|
|
|
|
<th>{{__('Price')}}</th>
|
2022-06-16 10:27:53 +00:00
|
|
|
<th>{{__('Billing period')}}</th>
|
2021-12-13 07:42:53 +00:00
|
|
|
<th>{{__('Memory')}}</th>
|
|
|
|
<th>{{__('Cpu')}}</th>
|
|
|
|
<th>{{__('Swap')}}</th>
|
|
|
|
<th>{{__('Disk')}}</th>
|
|
|
|
<th>{{__('Databases')}}</th>
|
|
|
|
<th>{{__('Backups')}}</th>
|
|
|
|
<th>{{__('Nodes')}}</th>
|
2021-12-14 14:24:53 +00:00
|
|
|
<th>{{__('Eggs')}}</th>
|
2021-12-13 07:42:53 +00:00
|
|
|
<th>{{__('Servers')}}</th>
|
|
|
|
<th>{{__('Created at')}}</th>
|
2021-06-05 09:26:32 +00:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2021-12-14 15:05:27 +00:00
|
|
|
<tbody></tbody>
|
2021-06-05 09:26:32 +00:00
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- END CUSTOM CONTENT -->
|
|
|
|
|
|
|
|
</section>
|
|
|
|
<!-- END CONTENT -->
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function submitResult() {
|
2021-12-14 15:08:51 +00:00
|
|
|
return confirm("{{__('Are you sure you wish to delete?')}}") !== false;
|
2021-06-05 09:26:32 +00:00
|
|
|
}
|
2021-12-14 15:08:51 +00:00
|
|
|
|
2021-06-05 09:26:32 +00:00
|
|
|
document.addEventListener("DOMContentLoaded", function () {
|
2021-12-14 15:05:27 +00:00
|
|
|
$("#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,
|
2021-12-14 15:05:27 +00:00
|
|
|
order: [
|
2021-12-14 15:08:51 +00:00
|
|
|
[2, "asc"]
|
2021-12-14 15:05:27 +00:00
|
|
|
],
|
|
|
|
ajax: "{{ route('admin.products.datatable') }}",
|
2021-06-05 09:26:32 +00:00
|
|
|
columns: [
|
2021-12-14 15:05:27 +00:00
|
|
|
{data: "disabled"},
|
|
|
|
{data: "name"},
|
|
|
|
{data: "price"},
|
2022-06-16 10:27:53 +00:00
|
|
|
{data: "billing_period"},
|
2021-12-14 15:05:27 +00:00
|
|
|
{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}
|
2021-06-05 09:26:32 +00:00
|
|
|
],
|
2021-12-14 15:05:27 +00:00
|
|
|
fnDrawCallback: function (oSettings) {
|
|
|
|
$("[data-toggle=\"popover\"]").popover();
|
2021-06-05 09:26:32 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-14 15:08:51 +00:00
|
|
|
@endsection
|