defaultSort('id', 'desc'); } public static function getPages(): array { return [ 'index' => CompatibleListFailedJobs::route('/'), 'view' => ViewFailedJob::route('/{record}'), ]; } /** * Only make this resource available in specific panels */ public static function canViewAny(): bool { // Check if we're in the 0xdash panel or other admin panels $panel = filament()->getCurrentPanel(); return in_array($panel->getId(), ['0xdash', 'admin']); } }