Introduced a new Livewire component for statistics redirection and added a corresponding route to enhance navigation within the Proxmox extension. This update lays the groundwork for future statistics-related features.
71 lines
2.3 KiB
PHP
71 lines
2.3 KiB
PHP
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;
|
|
|
|
$__newAttributes = [];
|
|
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
|
|
'alpineHidden' => null,
|
|
'alpineSelected' => null,
|
|
'recordAction' => null,
|
|
'recordUrl' => null,
|
|
'striped' => 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(([
|
|
'alpineHidden' => null,
|
|
'alpineSelected' => null,
|
|
'recordAction' => null,
|
|
'recordUrl' => null,
|
|
'striped' => 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); ?>
|
|
|
|
<?php
|
|
$hasAlpineHiddenClasses = filled($alpineHidden);
|
|
$hasAlpineSelectedClasses = filled($alpineSelected);
|
|
|
|
$stripedClasses = 'bg-gray-50 dark:bg-white/5';
|
|
?>
|
|
|
|
<tr
|
|
<?php if($hasAlpineHiddenClasses || $hasAlpineSelectedClasses): ?>
|
|
x-bind:class="{
|
|
<?php echo e($hasAlpineHiddenClasses ? "'hidden': {$alpineHidden}," : null); ?>
|
|
|
|
<?php echo e($hasAlpineSelectedClasses && (! $striped) ? "'{$stripedClasses}': {$alpineSelected}," : null); ?>
|
|
|
|
<?php echo e($hasAlpineSelectedClasses ? "'[&>*:first-child]:relative [&>*:first-child]:before:absolute [&>*:first-child]:before:start-0 [&>*:first-child]:before:inset-y-0 [&>*:first-child]:before:w-0.5 [&>*:first-child]:before:bg-primary-600 [&>*:first-child]:dark:before:bg-primary-500': {$alpineSelected}," : null); ?>
|
|
|
|
}"
|
|
<?php endif; ?>
|
|
<?php echo e($attributes->class([
|
|
'fi-ta-row [@media(hover:hover)]:transition [@media(hover:hover)]:duration-75',
|
|
'hover:bg-gray-50 dark:hover:bg-white/5' => $recordAction || $recordUrl,
|
|
$stripedClasses => $striped,
|
|
])); ?>
|
|
|
|
>
|
|
<?php echo e($slot); ?>
|
|
|
|
</tr>
|
|
<?php /**PATH C:\Users\Owner\Virtnet.bond\vendor\filament\tables\resources\views\components\row.blade.php ENDPATH**/ ?>
|