public function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('subject')
->wrap()
->searchable(),
])
->recordActions([
ViewAction::make()
->schema([
TextEntry::make('body')
->state(fn ($record) => nl2br(e($record->body)))
->html(),
]),
]);
}
public function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('subject')
->wrap()
->searchable(),
])
->recordActions([
ViewAction::make()
->schema([
TextEntry::make('body')
->state(fn ($record) => nl2br(e($record->body)))
->html(),
]),
]);
}