- Changed modal close event from `@click.away` to `@click.self` for better control over closing modals. - Updated various modal button styles for consistency and improved accessibility. - Adjusted transition durations for modal animations to enhance user experience. - Added aria-labels to close buttons for better screen reader support.
33 lines
775 B
PHP
33 lines
775 B
PHP
{{--
|
|
Table Row Component - LucentUI Theme
|
|
Migrated from AdminLTE to Tailwind
|
|
--}}
|
|
|
|
@props([
|
|
'clickable' => false,
|
|
'href' => null,
|
|
'hoverable' => null,
|
|
])
|
|
|
|
@php
|
|
$isHoverable = $hoverable ?? true;
|
|
@endphp
|
|
|
|
@if($href)
|
|
<tr
|
|
{{ $attributes->class([
|
|
'border-b border-neutral last:border-b-0 transition-colors duration-200 cursor-pointer hover:bg-primary/5 dark:hover:bg-primary/10',
|
|
]) }}
|
|
onclick="window.location='{{ $href }}'"
|
|
>
|
|
{{ $slot }}
|
|
</tr>
|
|
@else
|
|
<tr {{ $attributes->class([
|
|
'border-b border-neutral last:border-b-0 transition-colors duration-200',
|
|
'cursor-pointer hover:bg-primary/5 dark:hover:bg-primary/10' => $clickable,
|
|
]) }}>
|
|
{{ $slot }}
|
|
</tr>
|
|
@endif
|