@php $fmtDuration = function (?int $seconds): string { $seconds = max(0, (int) $seconds); $h = intdiv($seconds, 3600); $m = intdiv($seconds % 3600, 60); $s = $seconds % 60; return sprintf('%02d:%02d:%02d', $h, $m, $s); }; @endphp
{{ __('Track time across everyone working on this job.') }}
{{ __('Total logged') }}
{{ number_format($totalHours, 2) }}{{ __('hrs') }}
{{ __('Where the time went') }}
{{ __('Timer running') }}, {{ $active->activity }} @unless ($active->is_billable) ({{ __('non-billable') }}) @endunless
00:00:00
{{ __('Time named here becomes that product’s labour. Left on the job, it is shared across the job’s products.') }}
| {{ __('Member') }} | {{ __('Activity') }} | {{ __('On') }} | {{ __('Started') }} | {{ __('Ended') }} | {{ __('Duration') }} | {{ __('Billable') }} | {{ __('Actions') }} |
|---|---|---|---|---|---|---|---|
| {{ $entry->user?->name ?: '—' }} @if ($entry->user_id === $currentUserId) ({{ __('you') }}) @endif | {{ $entry->activity }} | @if ($entry->productPart) {{ $entry->productPart->label }} {{ $entry->lineItem?->name }} @elseif ($entry->lineItem) {{ $entry->lineItem->name }} @else {{ __('Whole job') }} @endif | {{ optional($entry->started_at)->format('Y-m-d H:i') }} |
@if ($entry->ended_at)
{{ $entry->ended_at->format('Y-m-d H:i') }}
@else
|
@if ($entry->ended_at) {{ $fmtDuration($entry->duration_seconds) }} @else — @endif |
@if ($entry->is_billable)
|
@if ($canManage || $entry->user_id === $currentUserId)
@if ($entry->ended_at)
@endif
@else
—
@endif
|
| {{ __('No time logged on this job yet.') }} | |||||||
{{ $entry->user?->name ?: '—' }} @if ($entry->user_id === $currentUserId) ({{ __('you') }}) @endif
{{ $entry->activity }}
@if ($entry->productPart) {{ $entry->lineItem?->name }} · {{ $entry->productPart->label }} @elseif ($entry->lineItem) {{ $entry->lineItem->name }} @else {{ __('Whole job') }} @endif
{{ optional($entry->started_at)->format('Y-m-d H:i') }} @if ($entry->ended_at) → {{ $entry->ended_at->format('H:i') }} @endif
@if ($entry->ended_at)
{{ $fmtDuration($entry->duration_seconds) }}
@else
{{ __('You have a timer running on') }} {{ $conflictJobTitle }}. {{ __('Keep it running, or stop it and start this one?') }}