Add new badge. Update screenshot.

This commit is contained in:
2025-01-05 18:50:34 +01:00
parent faf9c8a480
commit d6bcffc3e1
7 changed files with 20 additions and 7 deletions

View File

@@ -9,10 +9,11 @@ use Symfony\Component\Routing\Attribute\Route;
final class NewController extends BaseController
{
#[Route('/promos', name: 'app_new')]
#[Route('/new', name: 'app_new')]
public function __invoke(): Response
{
$products = Product::whereHas('created_at', now()->subDays(30)->format('Y-m-d'))
$date = (new \DateTime())->modify('-30 days')->format('Y-m-d');
$products = Product::where('created_at', '>', $date)
->orderByDesc('starred')
->orderByDesc('created_by')
->with(['currentPrice'])