Files
newznab-tmux/resources/views/components/admin/th.blade.php
2026-03-05 12:55:57 +01:00

20 lines
482 B
PHP

{{-- Consistent table header cell --}}
@props([
'align' => 'left',
'width' => null,
])
@php
$alignClass = match($align) {
'center' => 'text-center',
'right' => 'text-right',
default => 'text-left',
};
$widthClass = $width ? "w-{$width}" : '';
@endphp
<th {{ $attributes->merge(['class' => "px-6 py-3 {$alignClass} text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider {$widthClass}"]) }}>
{{ $slot }}
</th>