This commit is contained in:
HolgerHatGarKeineNode
2023-02-07 09:54:35 +01:00
parent c501b68969
commit 5b475cc660
4 changed files with 3 additions and 5 deletions

View File

@@ -76,7 +76,6 @@ class MeetupEventTable extends DataTableComponent
->label( ->label(
fn($row, Column $column) => view('columns.meetup_events.link') fn($row, Column $column) => view('columns.meetup_events.link')
->withRow($row) ->withRow($row)
->withCountry($this->country)
), ),
]; ];
} }
@@ -87,7 +86,7 @@ class MeetupEventTable extends DataTableComponent
->where('meetup_events.start', '>=', now()) ->where('meetup_events.start', '>=', now())
->whereHas('meetup.city.country', fn($query) => $query->where('code', $this->country)) ->whereHas('meetup.city.country', fn($query) => $query->where('code', $this->country))
->with([ ->with([
'meetup', 'meetup.city.country',
]); ]);
} }
} }

View File

@@ -51,7 +51,6 @@ class MeetupTable extends DataTableComponent
->format( ->format(
fn($value, $row, Column $column) => view('columns.meetups.name') fn($value, $row, Column $column) => view('columns.meetups.name')
->withRow($row) ->withRow($row)
->withCountry($this->country)
) )
->searchable(fn($builder, $term) => $builder->where('meetups.name', 'ilike', '%'.$term.'%')), ->searchable(fn($builder, $term) => $builder->where('meetups.name', 'ilike', '%'.$term.'%')),
Column::make(__('Plebs')) Column::make(__('Plebs'))

View File

@@ -3,7 +3,7 @@
<x-button <x-button
primary primary
xs xs
:href="route('meetup.event.landing', ['country' => $country, 'meetupEvent' => $row->id])" :href="route('meetup.event.landing', ['country' => $row->meetup->city->country, 'meetupEvent' => $row->id])"
> >
<i class="fa fa-thin fa-browser mr-2"></i> <i class="fa fa-thin fa-browser mr-2"></i>
{{ __('Link to participate') }} {{ __('Link to participate') }}

View File

@@ -1,4 +1,4 @@
<a href="{{ route('meetup.landing', ['country' => $country, 'meetup' => $row]) }}"> <a href="{{ route('meetup.landing', ['country' => $row->city->country, 'meetup' => $row]) }}">
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<img class="h-24" src="{{ $row->getFirstMediaUrl('logo', 'thumb') }}" alt="{{ $row->name }}"> <img class="h-24" src="{{ $row->getFirstMediaUrl('logo', 'thumb') }}" alt="{{ $row->name }}">
<div> <div>