'employee_stat', 'plural' => 'stats', 'navigation' => 'stats', ]; } protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedChartBar; protected static string|UnitEnum|null $navigationGroup = NavigationGroup::Employees; protected static ?int $navigationSort = 2; protected static ?string $slug = 'stats'; protected static ?string $recordTitleAttribute = 'full_name'; protected static bool $isGloballySearchable = false; public static function form(Schema $schema): Schema { return $schema; } public static function infolist(Schema $schema): Schema { return $schema; } public static function table(Table $table): Table { return EmployeeStatsTable::configure($table); } public static function getRelations(): array { return []; } public static function getPages(): array { return [ 'index' => ListEmployeeStats::route('/'), ]; } public static function canViewAny(): bool { return Gate::check('viewAny', Employee::class); } public static function canView(Model $record): bool { return Gate::check('view', $record); } public static function canCreate(): bool { return false; } public static function canEdit(Model $record): bool { return false; } public static function canDelete(Model $record): bool { return false; } public static function canForceDelete(Model $record): bool { return false; } public static function canRestore(Model $record): bool { return false; } public static function getRecordRouteBindingEloquentQuery(): Builder { return parent::getRecordRouteBindingEloquentQuery() ->withoutGlobalScopes([ SoftDeletingScope::class, ]); } }