mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
course_events_count
This commit is contained in:
@@ -17,6 +17,7 @@ class VenueTable extends DataTableComponent
|
|||||||
public function configure(): void
|
public function configure(): void
|
||||||
{
|
{
|
||||||
$this->setPrimaryKey('id')
|
$this->setPrimaryKey('id')
|
||||||
|
->setDefaultSort('course_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',
|
||||||
@@ -73,7 +74,8 @@ class VenueTable extends DataTableComponent
|
|||||||
|
|
||||||
public function venueSearch($id)
|
public function venueSearch($id)
|
||||||
{
|
{
|
||||||
$venue = Venue::query()->find($id);
|
$venue = Venue::query()
|
||||||
|
->find($id);
|
||||||
|
|
||||||
return to_route('school.table.event', [
|
return to_route('school.table.event', [
|
||||||
'#table',
|
'#table',
|
||||||
|
|||||||
Reference in New Issue
Block a user