1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00

Added type column to home view tables

Added type column to home view tables
This commit is contained in:
cp6 2022-02-20 00:34:13 +11:00
parent 30f18c9419
commit dbb4d870aa

View File

@ -141,6 +141,7 @@
<thead class="table-light"> <thead class="table-light">
<tr> <tr>
<th class="text-nowrap">Name</th> <th class="text-nowrap">Name</th>
<th class="text-nowrap">Type</th>
<th class="text-nowrap">Due</th> <th class="text-nowrap">Due</th>
<th class="text-nowrap">Price</th> <th class="text-nowrap">Price</th>
<th class="text-nowrap"></th> <th class="text-nowrap"></th>
@ -162,6 +163,19 @@
{{$due_soon->name}} {{$due_soon->name}}
@endif @endif
</td> </td>
<td class="text-nowrap">
@if($due_soon->service_type === 1)
VPS
@elseif($due_soon->service_type === 2)
SHARED
@elseif($due_soon->service_type === 3)
RESELLER
@elseif($due_soon->service_type === 4)
DOMAIN
@elseif($due_soon->service_type === 5)
MISC
@endif
</td>
<td class="text-nowrap"> <td class="text-nowrap">
{{Carbon\Carbon::parse($due_soon->next_due_date)->diffForHumans()}}</td> {{Carbon\Carbon::parse($due_soon->next_due_date)->diffForHumans()}}</td>
<td class="text-nowrap">{{$due_soon->price}} {{$due_soon->currency}} {{\App\Process::paymentTermIntToString($due_soon->term)}}</td> <td class="text-nowrap">{{$due_soon->price}} {{$due_soon->currency}} {{\App\Process::paymentTermIntToString($due_soon->term)}}</td>
@ -197,6 +211,7 @@
<thead class="table-light"> <thead class="table-light">
<tr> <tr>
<th class="text-nowrap">Name</th> <th class="text-nowrap">Name</th>
<th class="text-nowrap">Type</th>
<th class="text-nowrap">Added</th> <th class="text-nowrap">Added</th>
<th class="text-nowrap">Price</th> <th class="text-nowrap">Price</th>
<th class="text-nowrap"></th> <th class="text-nowrap"></th>
@ -218,6 +233,19 @@
{{$new->name}} {{$new->name}}
@endif @endif
</td> </td>
<td class="text-nowrap">
@if($due_soon->service_type === 1)
VPS
@elseif($due_soon->service_type === 2)
SHARED
@elseif($due_soon->service_type === 3)
RESELLER
@elseif($due_soon->service_type === 4)
DOMAIN
@elseif($due_soon->service_type === 5)
MISC
@endif
</td>
<td class="text-nowrap">{{Carbon\Carbon::parse($new->created_at)->diffForHumans()}}</td> <td class="text-nowrap">{{Carbon\Carbon::parse($new->created_at)->diffForHumans()}}</td>
<td class="text-nowrap">{{$new->price}} {{$new->currency}} {{\App\Process::paymentTermIntToString($new->term)}}</td> <td class="text-nowrap">{{$new->price}} {{$new->currency}} {{\App\Process::paymentTermIntToString($new->term)}}</td>
<td class="text-nowrap text-center"> <td class="text-nowrap text-center">