mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
buttons outlined
This commit is contained in:
@@ -21,6 +21,7 @@ class CityTable extends DataTableComponent
|
|||||||
public function configure(): void
|
public function configure(): void
|
||||||
{
|
{
|
||||||
$this->setPrimaryKey('id')
|
$this->setPrimaryKey('id')
|
||||||
|
->setDefaultSort('course_events_count', 'desc')
|
||||||
->setAdditionalSelects(['id'])
|
->setAdditionalSelects(['id'])
|
||||||
->setThAttributes(function (Column $column) {
|
->setThAttributes(function (Column $column) {
|
||||||
return [
|
return [
|
||||||
|
|||||||
@@ -1,10 +1,18 @@
|
|||||||
<div class="flex flex-col space-y-1">
|
<div class="flex flex-col space-y-1">
|
||||||
@if($type === 'school')
|
@if($type === 'school')
|
||||||
<div>
|
<div>
|
||||||
<x-button amber wire:click="proximitySearch({{ $row->id }})" class="text-21gray">
|
@if($row->course_events_count > 0)
|
||||||
<i class="fa fa-thin fa-person-chalkboard mr-2"></i>
|
<x-button amber wire:click="proximitySearch({{ $row->id }})" class="text-21gray">
|
||||||
Umkreis-Suche Kurs-Termin {{ $row->name }} (100km)
|
<i class="fa fa-thin fa-person-chalkboard mr-2"></i>
|
||||||
</x-button>
|
Umkreis-Suche Kurs-Termin {{ $row->name }} (100km)
|
||||||
|
</x-button>
|
||||||
|
@endif
|
||||||
|
@if($row->course_events_count < 1)
|
||||||
|
<x-button outlined wire:click="proximitySearch({{ $row->id }})" class="text-21gray">
|
||||||
|
<i class="fa fa-thin fa-person-chalkboard mr-2"></i>
|
||||||
|
Umkreis-Suche Kurs-Termin {{ $row->name }} (100km)
|
||||||
|
</x-button>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@if($type === 'bookCase')
|
@if($type === 'bookCase')
|
||||||
|
|||||||
Reference in New Issue
Block a user