pianello-api/resources/views/components/base/table/th.blade.php
Ale Gallo 96c0bfb8ce Committing laravel (part 5)
committing blade templating files and components that might come in handy
2023-11-10 16:41:20 +01:00

17 lines
663 B
PHP

@aware(['variant' => null, 'dark' => null, 'bordered' => null, 'sm' => null])
<th
data-tw-merge
{{ $attributes->class(
merge([
'font-medium px-5 py-3 border-b-2 dark:border-darkmode-300',
$variant === 'light' ? 'border-b-0 text-slate-700' : null,
$variant === 'dark' ? 'border-b-0' : null,
$dark ? 'border-slate-600 dark:border-darkmode-300' : null,
$bordered ? 'border-l border-r border-t' : null,
$sm ? 'px-4 py-2' : null,
]),
)->merge($attributes->whereDoesntStartWith('class')->getAttributes()) }}
>
{{ $slot }}
</th>