show_worldwide added

This commit is contained in:
Benjamin Takats
2022-12-15 15:46:07 +01:00
parent bf6c281342
commit 2b28685b9a
4 changed files with 38 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ class BitcoinEventTable extends DataTableComponent
public function builder(): Builder
{
return BitcoinEvent::query()
->whereHas('venue.city.country', fn($query) => $query->where('code', $this->country));
->whereHas('venue.city.country', fn($query) => $query->where('code', $this->country))
->orWhere('show_worldwide', true);
}
}