Payment reminder mails

This commit is contained in:
th.guenther committed 2026-04-18 22:09:57 +02:00
1 parent ff98f0860c
commit 33a9271013
13 files changed
+157 -10

No files matched your search

@@ -75,6 +75,17 @@ class EventParticipantRepository {
return $participants;
}
public function getParticipantsWithMissingPayments(Event$event, Request $request) : array {
$participants = [];
foreach ($event->participants()->whereNull('unregistered_at')
->whereColumn('amount', '<>', 'amount_paid')
->get() as $participant) {
$participants[] = $participant;
};
return $participants;
}
public function getParticipantsWithIntolerances(Event $event, Request $request) : array {
$participants = [];
foreach ($event->participants()->whereNotNull('intolerances')->whereNot('intolerances' , '=', '')->get() as $participant) {