phases one of time logged now with log display
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
Str::lower((string) ($currentCompany?->slug ?? '')) === 'mpba-limited' ||
|
||||
Str::contains(Str::lower((string) ($currentCompany?->name ?? '')), 'mpba');
|
||||
$visibleCommentCount = $ticket->comments->count();
|
||||
$ticketTimeLogs = collect($ticket->timeLogs ?? []);
|
||||
@endphp
|
||||
|
||||
<div data-dusk="helpdesk-ticket-show" dusk="helpdesk-ticket-show" class="hd-helpdesk-surface space-y-4">
|
||||
@@ -1024,7 +1025,9 @@
|
||||
{{ session('ticket-action-updated') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@include('helpdesk::partials.ticket-time-timer', [
|
||||
'ticket' => $ticket,
|
||||
])
|
||||
<form method="POST" action="{{ route('helpdesk.tickets.time-logs.store', $ticket) }}"
|
||||
class="mb-4 space-y-2">
|
||||
@csrf
|
||||
@@ -1150,7 +1153,7 @@
|
||||
<div class="min-w-0">
|
||||
<h2 class="text-lg font-black tracking-tight">Time log history</h2>
|
||||
<p class="text-xs font-semibold text-emerald-100">
|
||||
{{ $ticket->timeLogs->count() }} entries · {{ $this->formattedTimeSpent() }}
|
||||
{{ $ticketTimeLogs->count() }} entries · {{ $this->formattedTimeSpent() }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -1163,7 +1166,7 @@
|
||||
|
||||
<div class="max-h-[70vh] overflow-y-auto p-5">
|
||||
<div class="space-y-3">
|
||||
@forelse ($ticket->timeLogs as $timeLog)
|
||||
@forelse ($ticketTimeLogs as $timeLog)
|
||||
<div
|
||||
class="rounded-xl border border-zinc-200 bg-zinc-50 p-3 dark:border-zinc-700 dark:bg-zinc-950">
|
||||
<div class="flex items-start justify-between gap-3">
|
||||
|
||||
Reference in New Issue
Block a user