Payment reminder mails
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user