split into modules

This commit is contained in:
Benjamin Takats
2022-12-12 16:21:10 +01:00
parent 40bc58eea2
commit 931b28907d
35 changed files with 259 additions and 309 deletions

View File

@@ -76,7 +76,7 @@ class CityTable extends DataTableComponent
->find($id);
$query = City::radius($city->latitude, $city->longitude, 100)
->where('id', '!=', $id);
return to_route('search.event', [
return to_route('school.table.event', [
'#table',
'country' => $this->country,
'table' => [
@@ -94,7 +94,7 @@ class CityTable extends DataTableComponent
$city = City::query()
->find($id);
$query = BookCase::radius($city->latitude, $city->longitude, 5);
return to_route('search.bookcases', [
return to_route('bookCases.table.bookcases', [
'#table',
'country' => $this->country,
'table' => [

View File

@@ -94,7 +94,7 @@ class CourseTable extends DataTableComponent
public function courseSearch($id)
{
return to_route('search.event', [
return to_route('school.table.event', [
'#table',
'country' => $this->country,
'table' => [

View File

@@ -81,7 +81,7 @@ class LecturerTable extends DataTableComponent
{
$lecturer = Lecturer::query()->find($id);
return to_route('search.event', [
return to_route('school.table.event', [
'#table',
'country' => $this->country,
'table' => [

View File

@@ -145,7 +145,7 @@ class LibraryItemTable extends DataTableComponent
{
$shouldBePublic = request()
->route()
->getName() !== 'library.lecturer';
->getName() !== 'library.table.lecturer';
return LibraryItem::query()
->whereHas('libraries', fn($query) => $query->where('libraries.is_public', $shouldBePublic))

View File

@@ -75,7 +75,7 @@ class VenueTable extends DataTableComponent
{
$venue = Venue::query()->find($id);
return to_route('search.event', [
return to_route('school.table.event', [
'#table',
'country' => $this->country,
'table' => [