fix: server page due in 0 days

This commit is contained in:
imlonghao 2022-09-26 22:46:53 +08:00 committed by GitHub
parent 2ae19112e3
commit dadef79367
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">