- Changed badge, button, card, dropdown, input, modal, select, table, tabs, toggle, and tooltip components to align with the TailAdmin design system. - Updated class names and styles for consistency across components. - Enhanced accessibility and responsiveness in various components. - Improved hover and focus states for better user experience.
32 lines
689 B
PHP
32 lines
689 B
PHP
{{--
|
|
Table Data Cell Component - TailAdmin style
|
|
--}}
|
|
|
|
@props([
|
|
'align' => 'start',
|
|
'nowrap' => false,
|
|
'muted' => false,
|
|
'strong' => false,
|
|
])
|
|
|
|
@php
|
|
$alignClasses = [
|
|
'start' => 'text-left',
|
|
'center' => 'text-center',
|
|
'end' => 'text-right',
|
|
];
|
|
$alignClass = $alignClasses[$align] ?? $alignClasses['start'];
|
|
@endphp
|
|
|
|
<td
|
|
{{ $attributes->class([
|
|
'px-5 py-4 text-theme-sm text-gray-700 dark:text-gray-300',
|
|
$alignClass,
|
|
'whitespace-nowrap' => $nowrap,
|
|
'text-gray-500 dark:text-gray-400' => $muted,
|
|
'font-medium text-gray-800 dark:text-white/90' => $strong,
|
|
]) }}
|
|
>
|
|
{{ $slot }}
|
|
</td>
|