mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
split into modules
This commit is contained in:
@@ -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' => [
|
||||
|
||||
@@ -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' => [
|
||||
|
||||
@@ -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' => [
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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' => [
|
||||
|
||||
Reference in New Issue
Block a user