new library added

This commit is contained in:
Benjamin Takats
2022-12-05 19:04:57 +01:00
parent 5735158927
commit b9265c3ec9
39 changed files with 1482 additions and 115 deletions

View File

@@ -55,6 +55,11 @@ class LecturerTable extends DataTableComponent
fn($row, Column $column) => $row->courses_count
)
->collapseOnMobile(),
Column::make('Inhalte')
->label(
fn($row, Column $column) => $row->library_items_count
)
->collapseOnMobile(),
Column::make('')
->label(
fn($row, Column $column) => view('columns.lectures.action')->withRow($row)
@@ -68,6 +73,7 @@ class LecturerTable extends DataTableComponent
return Lecturer::query()
->withCount([
'courses',
'libraryItems',
]);
}