feat: groups price calculator admin crud, booking/offer flow and api

This commit is contained in:
Björn Fromme
2026-08-03 15:25:10 +02:00
parent eabed8295a
commit 9d2aa11fdb
258 changed files with 16231 additions and 582 deletions
@@ -0,0 +1,30 @@
<?php
declare(strict_types=1);
namespace App\Controller\Admin\BookingEditDraft;
use App\Controller\Traits\ReturnUrlTrait;
use App\Entity\BookingEditDraft;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;
#[IsGranted('ROLE_GROUPS_ADMIN')]
class ShowController extends AbstractController
{
use ReturnUrlTrait;
#[Route('/admin/booking-edit-draft/{id}/show', name: 'app_admin_bookingeditdraft_show')]
public function index(BookingEditDraft $draft, Request $request): Response
{
$returnUrl = $this->getReturnUrl($request, 'app_admin_bookingeditdraft');
return $this->render('admin/booking_edit_draft/show.html.twig', [
'draft' => $draft,
'returnUrl' => $returnUrl,
]);
}
}