diff --git a/app/Http/Livewire/Tables/BitcoinEventTable.php b/app/Http/Livewire/Tables/BitcoinEventTable.php index bef95ac4..cd71790b 100644 --- a/app/Http/Livewire/Tables/BitcoinEventTable.php +++ b/app/Http/Livewire/Tables/BitcoinEventTable.php @@ -89,6 +89,7 @@ class BitcoinEventTable extends DataTableComponent ->with([ 'venue.city.country' ]) + ->where('bitcoin_events.from', '>=', now()) ->where(fn($query) => $query ->whereHas('venue.city.country', fn($query) => $query->where('code', $this->country)) diff --git a/app/Http/Livewire/Tables/MeetupEventTable.php b/app/Http/Livewire/Tables/MeetupEventTable.php index c8cc869d..dc12e054 100644 --- a/app/Http/Livewire/Tables/MeetupEventTable.php +++ b/app/Http/Livewire/Tables/MeetupEventTable.php @@ -81,6 +81,7 @@ class MeetupEventTable extends DataTableComponent public function builder(): Builder { return MeetupEvent::query() + ->where('meetup_events.start', '>=', now()) ->whereHas('meetup.city.country', fn($query) => $query->where('code', $this->country)) ->with([ 'meetup',