Skip to content

Commit c8d67e8

Browse files
committed
Add ticket logged time comment
1 parent c6ae697 commit c8d67e8

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

app/Filament/Resources/TicketResource/Pages/ViewTicket.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ protected function getActions(): array
101101
->required(),
102102

103103
Textarea::make('comment')
104-
->label(__('Comment')),
104+
->label(__('Comment'))
105+
->rows(3),
105106
])
106107
->action(function (Collection $records, array $data): void {
107108
$value = $data['time'];

resources/views/filament/resources/tickets/view.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,11 @@ class="text-danger-500 text-xs hover:text-danger-600 hover:underline">
306306
{{ $item->forHumans }}
307307
</span>
308308
</div>
309+
@if($item->comment)
310+
<div class="w-full">
311+
{!! nl2br(e($item->comment)) !!}
312+
</div>
313+
@endif
309314
</div>
310315
@endforeach
311316
@else

0 commit comments

Comments
 (0)