TextColumn::make('name_edit')
->visibleFrom('md')
->badge()
->color('success')
->html()
->getStateUsing(fn($record) => view('filament.partials.tests-badge', [
'count' => $record?->tests->count(),
])->render())
->icon(fn(bool $state): string => 'heroicon-m-eye')
->label('Teste probă')
->action(
Action::make('viewSampleTests')
->label('Tests')
->modalSubmitAction(false)
->modalWidth(Width::SevenExtraLarge)
->modalContent(
fn($record) => view('livewire.sample-tests', [
'record' => $record
])
),
),
TextColumn::make('name_edit')
->visibleFrom('md')
->badge()
->color('success')
->html()
->getStateUsing(fn($record) => view('filament.partials.tests-badge', [
'count' => $record?->tests->count(),
])->render())
->icon(fn(bool $state): string => 'heroicon-m-eye')
->label('Teste probă')
->action(
Action::make('viewSampleTests')
->label('Tests')
->modalSubmitAction(false)
->modalWidth(Width::SevenExtraLarge)
->modalContent(
fn($record) => view('livewire.sample-tests', [
'record' => $record
])
),
),