Direct payments for invoices

Events can be moved to archive and moved back
Fixed validation
This commit is contained in:
2026-05-12 16:04:15 +02:00
parent e2fb616565
commit 0cf9602958
42 changed files with 851 additions and 132 deletions
@@ -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')) {
+1 -1
View File
@@ -90,7 +90,7 @@ class EventRepository {
$visibleEvents = [];
/** @var Event $event */
foreach (Event::where($criteria)->get() as $event) {
foreach (Event::where($criteria)->orderBy('start_date')->get() as $event) {
if ($canSeeAll || !$accessCheck || $event->eventManagers()->where('user_id', $user->id)->exists()) {
$visibleEvents[] = $event;