copy()->subDay(); $tenants = (int) DB::table('tenants')->count(); $events = (int) DB::table('events')->count(); $photos = (int) DB::table('photos')->count(); $photos24h = (int) DB::table('photos')->where('created_at', '>=', $dayAgo)->count(); return [ Stat::make('Tenants', number_format($tenants)), Stat::make('Events', number_format($events)), Stat::make('Photos', number_format($photos)) ->description("+{$photos24h} in last 24h"), ]; } }