Support oft parent groups
This commit is contained in:
@@ -9,6 +9,7 @@ use App\Domains\Event\Actions\CreateEvent\CreateEventRequest;
|
||||
use App\Domains\Event\Actions\SetCostUnit\SetCostUnitCommand;
|
||||
use App\Domains\Event\Actions\SetCostUnit\SetCostUnitRequest;
|
||||
use App\Enumerations\CostUnitType;
|
||||
use App\Enumerations\ParticipantGroupType;
|
||||
use App\Enumerations\ParticipationFeeType;
|
||||
use App\Providers\InertiaProvider;
|
||||
use App\Resources\EventResource;
|
||||
@@ -28,6 +29,7 @@ class CreateController extends CommonController {
|
||||
'participationFeeType' => $this->tenant->slug === 'lv' ?
|
||||
ParticipationFeeType::PARTICIPATION_FEE_TYPE_FIXED :
|
||||
ParticipationFeeType::PARTICIPATION_FEE_TYPE_SOLIDARITY,
|
||||
'participantGroupTypes' => ParticipantGroupType::options(),
|
||||
])->render();
|
||||
}
|
||||
|
||||
@@ -58,7 +60,8 @@ class CreateController extends CommonController {
|
||||
$request->input('eventIban'),
|
||||
$payPerDay,
|
||||
$request->input('eventStreet'),
|
||||
$request->input('eventHouseNumber')
|
||||
$request->input('eventHouseNumber'),
|
||||
ParticipantGroupType::fromStored($request->input('eventParticipantGroupType')),
|
||||
);
|
||||
|
||||
$wasSuccessful = false;
|
||||
|
||||
Reference in New Issue
Block a user