mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-13 06:56:48 +00:00
check
This commit is contained in:
@@ -17,7 +17,7 @@ class MeetupTable extends DataTableComponent
|
|||||||
{
|
{
|
||||||
$this->setPrimaryKey('id')
|
$this->setPrimaryKey('id')
|
||||||
->setAdditionalSelects(['id', 'slug'])
|
->setAdditionalSelects(['id', 'slug'])
|
||||||
->setDefaultSort('slug', 'asc')
|
->setDefaultSort('meetup_events_count', 'desc')
|
||||||
->setThAttributes(function (Column $column) {
|
->setThAttributes(function (Column $column) {
|
||||||
return [
|
return [
|
||||||
'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400',
|
'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400',
|
||||||
@@ -75,12 +75,12 @@ class MeetupTable extends DataTableComponent
|
|||||||
'users',
|
'users',
|
||||||
'city.country',
|
'city.country',
|
||||||
'meetupEvents',
|
'meetupEvents',
|
||||||
]);
|
])
|
||||||
// ->withCount([
|
->withCount([
|
||||||
// 'users',
|
'users',
|
||||||
// 'meetupEvents' => fn($query) => $query->where('start', '>=', now()),
|
'meetupEvents' => fn($query) => $query->where('start', '>=', now()),
|
||||||
// ])
|
])
|
||||||
//->when($this->country, fn($query) => $query->orderBy('meetup_events_count', 'desc'));
|
->when($this->country, fn($query) => $query->orderBy('meetup_events_count', 'desc'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function meetupEventSearch($id)
|
public function meetupEventSearch($id)
|
||||||
|
|||||||
Reference in New Issue
Block a user