feat: centralize create/edit flow contexts, extract edit submit service
This commit is contained in:
1 parent
f903f17ebd
commit
69705052b3
28 files changed
+1342
-423
No files matched your search
@@ -48,23 +48,6 @@ trait BookingCreateTrait
|
||||
return $this->redirectToRoute($route);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepares template variables for the booking summary sidebar.
|
||||
*
|
||||
* @return array<string, mixed> Array containing all variables needed for the summary partial
|
||||
*/
|
||||
private function getSummaryVariables(BookingDto $bookingCreateDto): array
|
||||
{
|
||||
$summary = $this->summaryDataService->getSummaryData($bookingCreateDto);
|
||||
|
||||
return [
|
||||
'participantsCount' => $summary->participantCount,
|
||||
'pricingData' => $summary->pricingData,
|
||||
'assignmentCounts' => $summary->assignmentCounts,
|
||||
'groupedSelectedRooms' => $summary->groupedSelectedRooms,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles API errors by logging and adding a flash message.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user