Start work on updating services
This commit is contained in:
@@ -19,11 +19,12 @@
|
||||
<div class="col-12">
|
||||
<div class="card card-dark">
|
||||
<div class="card-body">
|
||||
<table class="table table-hover" id="service_domain">
|
||||
<table class="table table-hover" id="services">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Service ID</tH>
|
||||
<th>Account</th>
|
||||
<th>Product</th>
|
||||
<th>Domain</th>
|
||||
<th>Expires</th>
|
||||
<th>Registrar</th>
|
||||
@@ -36,11 +37,12 @@
|
||||
|
||||
<tbody>
|
||||
@foreach ($o as $oo)
|
||||
<tr @if ($oo->service_expire->isPast()) class="table-danger" @endif>
|
||||
<tr @if ($oo->hasExpired()) class="table-danger" @endif>
|
||||
<td><a href="{{ url('u/service',[$oo->service_id]) }}">{{ $oo->service->sid }}</td>
|
||||
<td>{{ $oo->service->account->name }}</td>
|
||||
<td>{{ $oo->service->product->name }}</td>
|
||||
<td>{{ $oo->service_name }}</td>
|
||||
<td>{{ $oo->service_expire->format('Y-m-d') }}</td>
|
||||
<td>{{ $oo->service_expire ? $oo->service_expire->format('Y-m-d') : '-' }}</td>
|
||||
<td>{{ $oo->registrar->name }}</td>
|
||||
<td>{{ $oo->registrar_ns }}</td>
|
||||
<td>@if ($oo->service->isBilled()) <span class="@if($oo->service->suspend_billing)strike @endif">{{ $oo->service->invoice_next->format('Y-m-d') }}</span> @else - @endif</td>
|
||||
@@ -67,14 +69,14 @@
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#service_domain').DataTable({
|
||||
order: [[4,'asc'],[1,'asc'],[2,'desc']],
|
||||
$('#services').DataTable({
|
||||
order: [[5,'asc'],[1,'asc'],[2,'desc']],
|
||||
rowGroup: {
|
||||
dataSrc: 4,
|
||||
dataSrc: 5,
|
||||
},
|
||||
columnDefs: [
|
||||
{
|
||||
targets: [4],
|
||||
targets: [5],
|
||||
visible: false,
|
||||
}
|
||||
],
|
||||
|
Reference in New Issue
Block a user