where('status', ReviewStatus::Pending)->count(); return $pending > 0 ? (string) $pending : null; } public static function getNavigationBadgeColor(): string { return 'warning'; } public static function form(Schema $schema): Schema { return ReviewForm::configure($schema); } public static function table(Table $table): Table { return ReviewsTable::configure($table); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => ListReviews::route('/'), 'create' => CreateReview::route('/create'), 'edit' => EditReview::route('/{record}/edit'), ]; } }