Payment reminder mails

This commit is contained in:
2026-04-18 22:09:57 +02:00
parent ff98f0860c
commit 33a9271013
13 changed files with 157 additions and 10 deletions

View File

@@ -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) {