@php $hasRunningTimer = $activeTimer && $activeTimer->ended_at === null; @endphp

Work timer

Start a user-specific timer. It remains active if the browser is closed.

@if ($hasRunningTimer)
Running
00:00:00
@else
Stopped
00:00:00
@endif
@if ($message)
{{ $message }}
@endif @error('timer')
{{ $message }}
@enderror
@if ($hasRunningTimer) @else @endif