From 5dbef2d9d1146096587b1d4e6b2069b883a3e629 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 3 Dec 2024 11:58:06 +1100 Subject: [PATCH] Fix Carbon not found for system/addedit --- resources/views/system/widget/system.blade.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/views/system/widget/system.blade.php b/resources/views/system/widget/system.blade.php index 59433a3..2e01faf 100644 --- a/resources/views/system/widget/system.blade.php +++ b/resources/views/system/widget/system.blade.php @@ -1,3 +1,5 @@ +@use(Carbon\Carbon) +@use(Carbon\CarbonInterface) @use(App\Classes\FTN\Packet) @use(App\Models\Mailer) @use(App\Models\User) @@ -353,7 +355,7 @@ Next:
- {{ $job->available_at->diffForHumans(now(),$job->available_at->isFuture() ? \Carbon\CarbonInterface::DIFF_ABSOLUTE : \Carbon\CarbonInterface::DIFF_RELATIVE_TO_NOW) }} + {{ $job->available_at->diffForHumans(now(),$job->available_at->isFuture() ? CarbonInterface::DIFF_ABSOLUTE : CarbonInterface::DIFF_RELATIVE_TO_NOW) }}
@endif @@ -383,6 +385,7 @@ Next Heartbeat:
+ {{ $x ? $x->created_at->addHours($o->heartbeat) : Carbon::now() }}