From 0d76021f8a9abb336e79a0f6ecc02354e39e2893 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Wed, 7 Oct 2026 23:53:09 +0200 Subject: [PATCH] improve goal target formatting in superadmin interface --- app/Filament/Resources/GoalResource.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Filament/Resources/GoalResource.php b/app/Filament/Resources/GoalResource.php index 33112827..fa981c3b 100644 --- a/app/Filament/Resources/GoalResource.php +++ b/app/Filament/Resources/GoalResource.php @@ -107,7 +107,8 @@ class GoalResource extends Resource TextColumn::make('comparison') ->sortable(), TextColumn::make('target_seconds') - ->label('Target (seconds)') + ->label('Target') + ->formatStateUsing(fn (int $state): string => sprintf('%dh %02dm', intdiv($state, 3600), intdiv($state % 3600, 60))) ->sortable(), TextColumn::make('period') ->sortable(),