pianello-api/resources/views/components/base/table/tr.blade.php

18 lines
605 B
PHP
Raw Normal View History

@aware(['hover' => null, 'striped' => null])
<tr
data-tw-merge
{{ $attributes->class(
merge([
$hover
? '[&:hover_td]:bg-slate-100 [&:hover_td]:dark:bg-darkmode-300 [&:hover_td]:dark:bg-opacity-50'
: null,
$striped
? '[&:nth-of-type(odd)_td]:bg-slate-100 [&:nth-of-type(odd)_td]:dark:bg-darkmode-300 [&:nth-of-type(odd)_td]:dark:bg-opacity-50'
: null,
]),
)->merge($attributes->whereDoesntStartWith('class')->getAttributes()) }}
>
{{ $slot }}
</tr>