Skip to content

Commit 6ec0761

Browse files
committed
♻️ null-pointer check + aria-label
1 parent 6442522 commit 6ec0761

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

resources/views/includes/statuses.blade.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
@foreach($statuses as $status)
22
@if($showDates && ($loop->first || !$status->checkin->departure->isSameDay($statuses[$loop->index - 1]->checkin->departure)))
33
<h2 class="mb-2 fs-5">
4-
{{userTime($status->checkin->departure, __('dateformat.with-weekday'))}}
5-
@if(Route::is('profile') && $user->is(Auth::user()))
6-
<a href="{{route('stats.daily', ['dateString' => $status->checkin->departure->toDateString()])}}"
7-
class="text-trwl"
8-
>
4+
{{ userTime($status->checkin->departure, __('dateformat.with-weekday')) }}
5+
@if(Route::is('profile') && isset($user) && $user->is(Auth::user()))
6+
<a href="{{ route('stats.daily', ['dateString' => $status->checkin->departure->toDateString()]) }}"
7+
class="text-trwl" aria-label="{{ __('stats.daily') }}">
98
<i class="fa-solid fa-map-location-dot" aria-hidden="true"></i>
109
</a>
1110
@endif

0 commit comments

Comments
 (0)