fix: last updated date

This commit is contained in:
Ben Goldsworthy 2024-11-05 00:11:41 +01:00
parent 5748f5c2f2
commit b4773854f1
Signed by: Rumperuu
SSH key fingerprint: SHA256:e5XfzNOr9UvWpEzyLfw0GtTMZWIFh3NmxH+/qQIi3xE

View file

@ -20,7 +20,7 @@
@if ($trip->is_active)
<span class="{{ ($trip->is_tracking) ? "positive" : "negative" }}">{{ ($trip->is_tracking) ? "Currently tracking" : "Not currently tracking" }}</span>
@endif
<span class="small">(Last update: {!! render_date_difference($trip->updated_at) !!})</span>
<span class="small">(Last update: {!! render_date_difference( $trip->checkins[ count($trip->checkins) - 1 ]->date ) !!})</span>
</p>
</section>
</header>