table changes

This commit is contained in:
Benjamin Takats
2023-01-19 15:44:09 +01:00
parent 31c7b47548
commit faeb31d4b2
17 changed files with 46 additions and 37 deletions

View File

@@ -47,6 +47,7 @@ class LecturerTable extends DataTableComponent
])
->collapseOnMobile(),
Column::make("Name", "name")
->searchable(fn($query, $term) => $query->where('name', 'ilike', '%'.$term.'%'))
->sortable(),
BooleanColumn::make("Aktiv", 'active')
->sortable()
@@ -88,8 +89,8 @@ class LecturerTable extends DataTableComponent
if ($event) {
return to_route('school.table.event', [
'#table',
'country' => $this->country,
'table' => [
'country' => $this->country,
'course_events' => [
'filters' => [
'dozent' => $lecturer->id,
],
@@ -98,8 +99,8 @@ class LecturerTable extends DataTableComponent
} else {
return to_route('library.table.libraryItems', [
'#table',
'country' => $this->country,
'table' => [
'country' => $this->country,
'library_items' => [
'filters' => [
'lecturer_id' => $lecturer->id,
],