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_email">
|
||||
<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>Supplier</th>
|
||||
@@ -38,11 +39,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->service->product->supplier->name }}</td>
|
||||
<td>{{ $oo->admin_url }}</td>
|
||||
<td>@if($oo->admin_user){{ $oo->admin_user }}/{{ $oo->admin_pass }}@else @endif</td>
|
||||
@@ -71,14 +73,14 @@
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#service_email').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