working timers

This commit is contained in:
Mark Gregory
2026-06-22 14:29:34 +01:00
parent 51e074e91c
commit fc72f90fad
@@ -1,6 +1,6 @@
@php @php
use Illuminate\Support\Str;use Modules\Helpdesk\Models\TicketTimeLog; use Illuminate\Support\Str;
use Modules\Helpdesk\Models\TicketTimeLog;
$currentUser = auth()->user(); $currentUser = auth()->user();
$currentCompany = $currentUser?->company; $currentCompany = $currentUser?->company;
$canSeeInternalNotes = $canSeeInternalNotes =
@@ -1205,7 +1205,7 @@
</p> </p>
</div> </div>
@php @php
$timeLogSeconds = (int) ($timeLog->seconds ?? ((int) $timeLog->minutes * 60)); $timeLogSeconds = max(0, (int) ($timeLog->seconds ?? ((int) $timeLog->minutes * 60)));
@endphp @endphp
<span class="shrink-0 rounded-lg bg-emerald-600 px-3 py-1.5 text-xs font-black text-white"> <span class="shrink-0 rounded-lg bg-emerald-600 px-3 py-1.5 text-xs font-black text-white">
{{ gmdate('H:i:s', $timeLogSeconds) }} {{ gmdate('H:i:s', $timeLogSeconds) }}