Direct payments for invoices
Events can be moved to archive and moved back Fixed validation
This commit is contained in:
@@ -88,7 +88,7 @@ class EventParticipantRepository {
|
||||
|
||||
public function getParticipantsWithIntolerances(Event $event, Request $request) : array {
|
||||
$participants = [];
|
||||
foreach ($event->participants()->whereNotNull('intolerances')->whereNot('intolerances' , '=', '')->get() as $participant) {
|
||||
foreach ($event->participants()->orderBy('lastname')->orderBy('firstname')->whereNotNull('intolerances')->whereNot('intolerances' , '=', '')->get() as $participant) {
|
||||
$participants[] = $participant->toResource()->toArray($request);
|
||||
};
|
||||
|
||||
@@ -97,7 +97,7 @@ class EventParticipantRepository {
|
||||
|
||||
public function getKitchenOverview(Event $event) : array {
|
||||
$data = [];
|
||||
$participants = $event->participants()->get();
|
||||
$participants = $event->participants()->orderBy('lastname')->orderBy('firstname')->get();
|
||||
|
||||
|
||||
for ($cur_date = $event->start_date; $cur_date <= $event->end_date; $cur_date->modify('+1 day')) {
|
||||
|
||||
Reference in New Issue
Block a user