Merge pull request #67 from imlonghao/patch-1

fix: server page due in 0 days
This commit is contained in:
corbpie 2022-09-27 14:35:07 +10:00 committed by GitHub
commit e02f4f6b11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@
<td class="text-nowrap">{{ $server->provider->name }}</td> <td class="text-nowrap">{{ $server->provider->name }}</td>
<td class="text-nowrap">{{ $server->price->price }} {{$server->price->currency}} {{\App\Process::paymentTermIntToString($server->price->term)}}</td> <td class="text-nowrap">{{ $server->price->price }} {{$server->price->currency}} {{\App\Process::paymentTermIntToString($server->price->term)}}</td>
<td class="text-nowrap"> <td class="text-nowrap">
{{now()->diffInDays(Carbon\Carbon::parse($server->next_due_date), false)}} {{now()->diffInDays(Carbon\Carbon::parse($server->price->next_due_date), false)}}
<small>days</small></td> <small>days</small></td>
<td class="text-nowrap"> {{ $server->owned_since }}</td> <td class="text-nowrap"> {{ $server->owned_since }}</td>
<td class="text-nowrap"> <td class="text-nowrap">