Fix display of Billing Start Date and other minor items
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 30s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2024-07-24 15:31:57 +10:00
parent 1bae121481
commit 14609fb377
3 changed files with 22 additions and 15 deletions

View File

@ -28,11 +28,11 @@
<div class="card">
<div class="card-header bg-dark d-flex p-0">
<ul class="nav nav-pills w-100 p-2">
@if ($x=! ($o->suspend_billing || $o->external_billing))
@if($x=! ($o->suspend_billing || $o->external_billing))
<li class="nav-item"><a @class(['nav-link','active'=>! session()->has('service_update')]) href="#pending_items" data-toggle="tab">Pending Items</a></li>
@endif
@if ($o->product->hasUsage())
@if($o->product->hasUsage())
<li class="nav-item"><a @class(['nav-link','active'=>! ($x || session()->has('service_update'))]) href="#traffic" data-toggle="tab">Traffic</a></li>
@endif
@ -61,15 +61,15 @@
<div class="card-body">
<div class="tab-content">
@if ($x=! ($o->suspend_billing || $o->external_billing))
@if($x=! ($o->suspend_billing || $o->external_billing))
<div @class(['tab-pane','fade','show active'=>! session()->has('service_update')]) id="pending_items">
@include('theme.backend.adminlte.service.widget.invoice')
</div>
@endif
@if ($o->product->hasUsage())
@if($o->product->hasUsage())
<div @class(['tab-pane','fade','show active'=>! ($x || session()->has('service_update'))]) id="traffic">
@if ($o->type->usage(30)->count())
@if($o->type->usage(30)->count())
@include('theme.backend.adminlte.service.widget.'.$o->product->category.'.usagegraph',['o'=>$o->type])
@endif
</div>
@ -88,7 +88,7 @@
@endif
</div>
<div @class(['tab-pane','fade','show active'=>session()->has('service_update')]) id="update">
<div @class(['tab-pane','fade','show active'=>session()->pull('service_update')]) id="update">
@include('theme.backend.adminlte.service.widget.update')
</div>
@endcan

View File

@ -22,6 +22,7 @@
<th>Service Number</th>
<td>{{ $o->service_number }}</td>
</tr>
@if($o->pppoe)
<tr>
<th>Service Username</th>
<td>{{ $o->service_username }}</td>
@ -30,6 +31,12 @@
<th>Service Password</th>
<td>{{ $o->service_password }}</td>
</tr>
@else
<tr>
<th>Service Type</th>
<td>Layer 2</td>
</tr>
@endif
@if($o->connect_at)
<tr>
<th>Connected</th>

View File

@ -19,7 +19,7 @@
<div class="col-1"></div>
<div class="col-12 col-sm-9 col-md-6 col-xl-5">
<x-leenooks::form.date id="invoice_next_at" name="invoice_next_at" icon="fa-calendar" label="Billing Start Date" :value="($o->invoice_next_at ?: $o->connect_at)?->format('Y-m-d')"/>
<x-leenooks::form.date id="invoice_next_at" name="invoice_next_at" icon="fa-calendar" label="Billing Start Date" :value="($o->getRawOriginal('invoice_next_at') ?: $o->getRawOriginal('connect_at'))"/>
</div>
<!-- Price -->