<?phpuse App\Filament\Resources\UnitResource;use Filament\Actions;use Filament\Resources\Pages\ListRecords;class ListUnits extends ListRecords{ protected static string $resource = UnitResource::class; protected function getHeaderActions(): array { return [ Actions\CreateAction::make(), // <-- missing this ]; }}
<?phpnamespace App\Filament\Pages;use Filament\Pages\Page;class Reports extends Page{ protected static ?string $navigationIcon = 'heroicon-o-chart-pie'; protected static string $view = 'filament.pages.reports'; protected static ?string $title = 'Reports'; protected static ?string $navigationLabel = 'Reports'; protected static ?int $navigationSort = 4; // protected ?string $heading = "";}
->formatStateUsing(function ($state, $record) { $modelClass = $record->fileable_type; if (class_exists($modelClass)) { return $modelClass::find($state)->name; } })
->placeholder('Your Custom Placeholder Text'),