Validate payment status before showing "Add meetup" button in project support.

This commit is contained in:
user
2025-11-16 18:30:20 +01:00
parent 308b2e9763
commit 07caebd54f

View File

@@ -125,7 +125,7 @@ $delete = function ($id) {
</form>
<!-- Add meetup button -->
@if($currentPleb && $currentPleb->association_status->value > 1)
@if($currentPleb && $currentPleb->association_status->value > 1 && $currentPleb->paymentEvents()->where('year', date('Y'))->where('paid', true)->exists())
<x-button :href="route('association.projectSupport.create')" icon="plus"
label="Projekt einreichen"/>
@endif