From b4773854f1f2b459b0f45682a97d041d3c673f44 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Tue, 5 Nov 2024 00:11:41 +0100 Subject: [PATCH] fix: last updated date --- resources/views/tracker.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/tracker.blade.php b/resources/views/tracker.blade.php index 4bd328b..0259666 100644 --- a/resources/views/tracker.blade.php +++ b/resources/views/tracker.blade.php @@ -20,7 +20,7 @@ @if ($trip->is_active) {{ ($trip->is_tracking) ? "Currently tracking" : "Not currently tracking" }} @endif - (Last update: {!! render_date_difference($trip->updated_at) !!}) + (Last update: {!! render_date_difference( $trip->checkins[ count($trip->checkins) - 1 ]->date ) !!})