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

@@ -61,6 +61,7 @@ class CourseTable extends DataTableComponent
->sortable()
->collapseOnMobile(),
Column::make("Name", "name")
->searchable(fn(Builder $query, string $term) => $query->where('name', 'ilike', '%'.$term.'%'))
->sortable(),
Column::make("Tags")
->label(
@@ -104,8 +105,8 @@ class CourseTable extends DataTableComponent
{
return to_route('school.table.event', [
'#table',
'country' => $this->country,
'table' => [
'country' => $this->country,
'course_events' => [
'filters' => [
'course_id' => $id,
],