mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-13 06:56:48 +00:00
add landing pages for meetups
This commit is contained in:
45
resources/views/vendor/livewire-tables/components/table/tr.blade.php
vendored
Normal file
45
resources/views/vendor/livewire-tables/components/table/tr.blade.php
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
@aware(['component'])
|
||||
@props(['row', 'rowIndex'])
|
||||
|
||||
@php
|
||||
$attributes = $attributes->merge(['wire:key' => 'row-'.$rowIndex.'-'.$component->id]);
|
||||
$theme = $component->getTheme();
|
||||
$customAttributes = $this->getTrAttributes($row, $rowIndex);
|
||||
@endphp
|
||||
|
||||
@if ($theme === 'tailwind')
|
||||
<tr
|
||||
wire:loading.class.delay="opacity-50 dark:bg-gray-900 dark:opacity-60"
|
||||
|
||||
@if ($component->reorderIsEnabled() && $component->currentlyReorderingIsEnabled())
|
||||
wire:sortable.item="{{ $row->getKey() }}"
|
||||
@endif
|
||||
|
||||
{{
|
||||
$attributes->merge($customAttributes)
|
||||
->class(['bg-white dark:bg-gray-700 dark:text-white' => ($customAttributes['default'] ?? true) && $rowIndex % 2 === 0])
|
||||
->class(['bg-gray-50 dark:bg-gray-800 dark:text-white' => ($customAttributes['default'] ?? true) && $rowIndex % 2 !== 0])
|
||||
->class(['cursor-pointer' => $component->hasTableRowUrl()])
|
||||
->except('default')
|
||||
}}
|
||||
>
|
||||
{{ $slot }}
|
||||
</tr>
|
||||
@elseif ($theme === 'bootstrap-4' || $theme === 'bootstrap-5')
|
||||
<tr
|
||||
wire:loading.class.delay=""
|
||||
|
||||
@if ($component->reorderIsEnabled() && $component->currentlyReorderingIsEnabled())
|
||||
wire:sortable.item="{{ $row->getKey() }}"
|
||||
@endif
|
||||
|
||||
{{
|
||||
$attributes->merge($customAttributes)
|
||||
->class(['' => ($customAttributes['default'] ?? true) && $rowIndex % 2 === 0])
|
||||
->class(['' => ($customAttributes['default'] ?? true) && $rowIndex % 2 !== 0])
|
||||
->except('default')
|
||||
}}
|
||||
>
|
||||
{{ $slot }}
|
||||
</tr>
|
||||
@endif
|
||||
Reference in New Issue
Block a user