mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-13 05:26:47 +00:00
Validate payment status before showing "Add meetup" button in project support.
This commit is contained in:
@@ -125,7 +125,7 @@ $delete = function ($id) {
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!-- Add meetup button -->
|
<!-- 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"
|
<x-button :href="route('association.projectSupport.create')" icon="plus"
|
||||||
label="Projekt einreichen"/>
|
label="Projekt einreichen"/>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
Reference in New Issue
Block a user