🎨 feat(profile): filter payment events by paid status in the association profile view

This commit is contained in:
fsociety
2024-10-24 16:40:34 +02:00
parent ddb13f81b1
commit f5d0e82f1a

View File

@@ -127,6 +127,7 @@ $listenForPayment = function () {
$paymentEvent->save(); $paymentEvent->save();
$this->payments = $this->currentPleb $this->payments = $this->currentPleb
->paymentEvents() ->paymentEvents()
->where('paid', true)
->get(); ->get();
$this->currentYearIsPaid = true; $this->currentYearIsPaid = true;
} }
@@ -135,6 +136,7 @@ $listenForPayment = function () {
$this->currentYearIsPaid = true; $this->currentYearIsPaid = true;
$this->payments = $this->currentPleb $this->payments = $this->currentPleb
->paymentEvents() ->paymentEvents()
->where('paid', true)
->get(); ->get();
} }
}; };