2022-04-02 07:06:34 +00:00
|
|
|
@extends('adminlte::layouts.app')
|
|
|
|
|
|
|
|
@section('htmlheader_title')
|
|
|
|
Email Hosting
|
|
|
|
@endsection
|
|
|
|
@section('page_title')
|
|
|
|
Email Hosting
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('contentheader_title')
|
|
|
|
Email Hosting
|
|
|
|
@endsection
|
|
|
|
@section('contentheader_description')
|
|
|
|
Email Hosting currently managed.
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('main-content')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="card card-dark">
|
|
|
|
<div class="card-body">
|
2022-04-02 09:26:59 +00:00
|
|
|
<table class="table table-hover" id="service_email">
|
2022-04-02 07:06:34 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Service ID</tH>
|
|
|
|
<th>Account</th>
|
|
|
|
<th>Domain</th>
|
|
|
|
<th>Expires</th>
|
|
|
|
<th>Supplier</th>
|
|
|
|
<th>Admin URL</th>
|
|
|
|
<th>Admin Details</th>
|
2022-04-02 07:16:02 +00:00
|
|
|
<th>Accounts</th>
|
2022-04-02 07:06:34 +00:00
|
|
|
<th>Next Billed</th>
|
|
|
|
<th>Price</th>
|
|
|
|
<th>Term</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
@foreach ($o as $oo)
|
|
|
|
<tr @if ($oo->service_expire->isPast()) 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_name }}</td>
|
|
|
|
<td>{{ $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>
|
2022-04-02 07:16:02 +00:00
|
|
|
<td class="text-right">{{ number_format($oo->accounts ?: 0,0) }}</td>
|
2022-04-02 07:06:34 +00:00
|
|
|
<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>
|
|
|
|
<td>@if (! $oo->service->external_billing)${{ number_format($oo->service->next_invoice_items(TRUE)->sum('total'),2) }}@else - @endif</td>
|
|
|
|
<td>{{ $oo->service->billing_interval_string }}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('page-scripts')
|
|
|
|
@css(datatables,bootstrap4|rowgroup)
|
|
|
|
@js(datatables,bootstrap4|rowgroup)
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.strike {
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
2022-04-02 09:26:59 +00:00
|
|
|
$('#service_email').DataTable({
|
2022-04-02 07:06:34 +00:00
|
|
|
order: [[4,'asc'],[1,'asc'],[2,'desc']],
|
|
|
|
rowGroup: {
|
|
|
|
dataSrc: 4,
|
|
|
|
},
|
|
|
|
columnDefs: [
|
|
|
|
{
|
|
|
|
targets: [4],
|
|
|
|
visible: false,
|
|
|
|
}
|
|
|
|
],
|
|
|
|
});
|
|
|
|
|
2022-04-02 09:26:59 +00:00
|
|
|
$('tbody').on('click','tr', function () {
|
2022-04-02 07:06:34 +00:00
|
|
|
$(this).toggleClass('selected');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@append
|