mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
add landing pages for meetups
This commit is contained in:
43
resources/views/vendor/livewire-tables/components/table/td.blade.php
vendored
Normal file
43
resources/views/vendor/livewire-tables/components/table/td.blade.php
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
@aware(['component', 'row', 'rowIndex'])
|
||||
@props(['column', 'colIndex'])
|
||||
|
||||
@php
|
||||
$attributes = $attributes->merge(['wire:key' => 'cell-'.$rowIndex.'-'.$colIndex.'-'.$component->id]);
|
||||
$theme = $component->getTheme();
|
||||
$customAttributes = $component->getTdAttributes($column, $row, $colIndex, $rowIndex)
|
||||
@endphp
|
||||
|
||||
@if ($theme === 'tailwind')
|
||||
<td
|
||||
@if ($column->isClickable())
|
||||
onclick="window.open('{{ $component->getTableRowUrl($row) }}', '{{ $component->getTableRowUrlTarget($row) ?? '_self' }}')"
|
||||
@endif
|
||||
|
||||
{{
|
||||
$attributes->merge($customAttributes)
|
||||
->class(['px-6 py-4 whitespace-nowrap text-sm font-medium dark:text-white' => $customAttributes['default'] ?? true])
|
||||
->class(['hidden sm:table-cell' => $column && $column->shouldCollapseOnMobile()])
|
||||
->class(['hidden md:table-cell' => $column && $column->shouldCollapseOnTablet()])
|
||||
->except('default')
|
||||
}}
|
||||
>
|
||||
{{ $slot }}
|
||||
</td>
|
||||
@elseif ($theme === 'bootstrap-4' || $theme === 'bootstrap-5')
|
||||
<td
|
||||
@if ($column->isClickable())
|
||||
onclick="window.open('{{ $component->getTableRowUrl($row) }}', '{{ $component->getTableRowUrlTarget($row) ?? '_self' }}')"
|
||||
style="cursor:pointer"
|
||||
@endif
|
||||
|
||||
{{
|
||||
$attributes->merge($customAttributes)
|
||||
->class(['' => $customAttributes['default'] ?? true])
|
||||
->class(['d-none d-sm-table-cell' => $column && $column->shouldCollapseOnMobile()])
|
||||
->class(['d-none d-md-table-cell' => $column && $column->shouldCollapseOnTablet()])
|
||||
->except('default')
|
||||
}}
|
||||
>
|
||||
{{ $slot }}
|
||||
</td>
|
||||
@endif
|
||||
Reference in New Issue
Block a user