count(); return "{$active} people giving every month."; } public function getTabs(): array { $active = ScheduledGivingDonation::where('is_active', true)->count(); $inactive = ScheduledGivingDonation::where('is_active', false)->count(); return [ 'active' => Tab::make('Active') ->icon('heroicon-o-check-circle') ->badge($active) ->badgeColor('success') ->modifyQueryUsing(fn (Builder $q) => $q->where('is_active', true)), 'cancelled' => Tab::make('Cancelled') ->icon('heroicon-o-x-circle') ->badge($inactive > 0 ? $inactive : null) ->badgeColor('gray') ->modifyQueryUsing(fn (Builder $q) => $q->where('is_active', false)), 'all' => Tab::make('All') ->icon('heroicon-o-squares-2x2'), ]; } protected function getHeaderActions(): array { return []; } }