F
Filament4d ago
Xavi

Not view first record of table

Is it possible to make the first record in a table shows, but when you click on it, a modal appears saying that you do not have permission to access that record? It would only be with the first one, the rest should work normally. The purpose is that only premium users can access the first register Thanks!
4 Replies
toeknee
toeknee4d ago
What you could do is add a class and on clicking it triggers a popup? ->recordClasses(fn (Model $record) => match ($record->status) { 'draft' => 'opacity-30', 'reviewing' => 'border-s-2 border-orange-600 dark:border-orange-300', 'published' => 'border-s-2 border-green-600 dark:border-green-300', default => null, });
Xavi
XaviOP4d ago
mmm but its for a field, not for all row, isn't it?
toeknee
toeknee3d ago
recordClasses = row
Want results from more Discord servers?
Add your server