F
Filament2mo 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
toeknee2mo 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
XaviOP2mo ago
mmm but its for a field, not for all row, isn't it?
toeknee
toeknee2mo ago
recordClasses = row

Did you find this page helpful?