mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
improve hr + agent update
This commit is contained in:
@@ -20,6 +20,7 @@ use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\HtmlString;
|
||||
use Filament\Infolists\Components;
|
||||
use Filament\Infolists;
|
||||
use Nette\Utils\Html;
|
||||
|
||||
class HitAndRunResource extends Resource
|
||||
{
|
||||
@@ -146,7 +147,7 @@ class HitAndRunResource extends Resource
|
||||
->label(__("label.inspect_time_left"))
|
||||
,
|
||||
Infolists\Components\TextEntry::make('comment')
|
||||
->formatStateUsing(fn ($record) => nl2br($record->comment))
|
||||
->formatStateUsing(fn ($record) => new HtmlString(nl2br($record->comment)))
|
||||
->label(__("label.comment"))
|
||||
,
|
||||
Infolists\Components\TextEntry::make('created_at')
|
||||
|
||||
Reference in New Issue
Block a user