false,
'alignment' => Alignment::Start,
'name',
'sortable' => false,
'sortDirection',
'wrap' => false,
]));
foreach ($attributes->all() as $__key => $__value) {
if (in_array($__key, $__propNames)) {
$$__key = $$__key ?? $__value;
} else {
$__newAttributes[$__key] = $__value;
}
}
$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);
unset($__propNames);
unset($__newAttributes);
foreach (array_filter(([
'activelySorted' => false,
'alignment' => Alignment::Start,
'name',
'sortable' => false,
'sortDirection',
'wrap' => false,
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
$$__key = $$__key ?? $__value;
}
$__defined_vars = get_defined_vars();
foreach ($attributes->all() as $__key => $__value) {
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}
unset($__defined_vars, $__key, $__value); ?>
aria-sort=""
class(['fi-ta-header-cell px-3 py-3.5 sm:first-of-type:ps-6 sm:last-of-type:pe-6'])); ?>
>
aria-label=""
role="button"
tabindex="0"
wire:click="sortTable('')"
x-on:keydown.enter.prevent.stop="$wire.sortTable('')"
x-on:keydown.space.prevent.stop="$wire.sortTable('')"
class=" $sortable,
'whitespace-nowrap' => ! $wrap,
'whitespace-normal' => $wrap,
match ($alignment) {
Alignment::Start => 'justify-start',
Alignment::Center => 'justify-center',
Alignment::End => 'justify-end',
Alignment::Left => 'justify-start rtl:flex-row-reverse',
Alignment::Right => 'justify-end rtl:flex-row-reverse',
Alignment::Justify, Alignment::Between => 'justify-between',
default => $alignment,
},
]); ?>"
>
'filament::components.icon','data' => ['alias' =>
match (true) {
$activelySorted && ($sortDirection === 'asc') => 'tables::header-cell.sort-asc-button',
$activelySorted && ($sortDirection === 'desc') => 'tables::header-cell.sort-desc-button',
default => 'tables::header-cell.sort-button',
}
,'icon' => $activelySorted && $sortDirection === 'asc' ? 'heroicon-m-chevron-up' : 'heroicon-m-chevron-down','class' => \Illuminate\Support\Arr::toCssClasses([
'fi-ta-header-cell-sort-icon h-5 w-5 shrink-0 transition duration-75',
'text-gray-950 dark:text-white' => $activelySorted,
'text-gray-400 dark:text-gray-500 group-hover:text-gray-500 group-focus-visible:text-gray-500 dark:group-hover:text-gray-400 dark:group-focus-visible:text-gray-400' => ! $activelySorted,
])]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
withName('filament::icon'); ?>
shouldRender()): ?>
startComponent($component->resolveView(), $component->data()); ?>
except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
withAttributes(['alias' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(
match (true) {
$activelySorted && ($sortDirection === 'asc') => 'tables::header-cell.sort-asc-button',
$activelySorted && ($sortDirection === 'desc') => 'tables::header-cell.sort-desc-button',
default => 'tables::header-cell.sort-button',
}
),'icon' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($activelySorted && $sortDirection === 'asc' ? 'heroicon-m-chevron-up' : 'heroicon-m-chevron-down'),'class' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\Illuminate\Support\Arr::toCssClasses([
'fi-ta-header-cell-sort-icon h-5 w-5 shrink-0 transition duration-75',
'text-gray-950 dark:text-white' => $activelySorted,
'text-gray-400 dark:text-gray-500 group-hover:text-gray-500 group-focus-visible:text-gray-500 dark:group-hover:text-gray-400 dark:group-focus-visible:text-gray-400' => ! $activelySorted,
]))]); ?>
renderComponent(); ?>
|