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.
137 lines
6.9 KiB
PHP
137 lines
6.9 KiB
PHP
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;
|
|
|
|
$__newAttributes = [];
|
|
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
|
|
'applyAction',
|
|
'form',
|
|
]));
|
|
|
|
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(([
|
|
'applyAction',
|
|
'form',
|
|
]), '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); ?>
|
|
|
|
<div <?php echo e($attributes->class(['fi-ta-filters grid gap-y-4'])); ?>>
|
|
<div class="flex items-center justify-between">
|
|
<h4
|
|
class="text-base font-semibold leading-6 text-gray-950 dark:text-white"
|
|
>
|
|
<?php echo e(__('filament-tables::table.filters.heading')); ?>
|
|
|
|
</h4>
|
|
|
|
<div>
|
|
<?php if (isset($component)) { $__componentOriginal549c94d872270b69c72bdf48cb183bc9 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal549c94d872270b69c72bdf48cb183bc9 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.link','data' => ['attributes' =>
|
|
\Filament\Support\prepare_inherited_attributes(
|
|
new \Illuminate\View\ComponentAttributeBag([
|
|
'color' => 'danger',
|
|
'tag' => 'button',
|
|
'wire:click' => 'resetTableFiltersForm',
|
|
'wire:loading.remove.delay.' . config('filament.livewire_loading_delay', 'default') => '',
|
|
'wire:target' => 'resetTableFiltersForm',
|
|
])
|
|
)
|
|
]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('filament::link'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(
|
|
\Filament\Support\prepare_inherited_attributes(
|
|
new \Illuminate\View\ComponentAttributeBag([
|
|
'color' => 'danger',
|
|
'tag' => 'button',
|
|
'wire:click' => 'resetTableFiltersForm',
|
|
'wire:loading.remove.delay.' . config('filament.livewire_loading_delay', 'default') => '',
|
|
'wire:target' => 'resetTableFiltersForm',
|
|
])
|
|
)
|
|
)]); ?>
|
|
<?php echo e(__('filament-tables::table.filters.actions.reset.label')); ?>
|
|
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal549c94d872270b69c72bdf48cb183bc9)): ?>
|
|
<?php $attributes = $__attributesOriginal549c94d872270b69c72bdf48cb183bc9; ?>
|
|
<?php unset($__attributesOriginal549c94d872270b69c72bdf48cb183bc9); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal549c94d872270b69c72bdf48cb183bc9)): ?>
|
|
<?php $component = $__componentOriginal549c94d872270b69c72bdf48cb183bc9; ?>
|
|
<?php unset($__componentOriginal549c94d872270b69c72bdf48cb183bc9); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginalbef7c2371a870b1887ec3741fe311a10 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginalbef7c2371a870b1887ec3741fe311a10 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.loading-indicator','data' => ['attributes' =>
|
|
\Filament\Support\prepare_inherited_attributes(
|
|
new \Illuminate\View\ComponentAttributeBag([
|
|
'wire:loading.delay.' . config('filament.livewire_loading_delay', 'default') => '',
|
|
'wire:target' => 'tableFilters,applyTableFilters,resetTableFiltersForm',
|
|
])
|
|
)->class(['h-5 w-5 text-gray-400 dark:text-gray-500'])
|
|
]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('filament::loading-indicator'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(
|
|
\Filament\Support\prepare_inherited_attributes(
|
|
new \Illuminate\View\ComponentAttributeBag([
|
|
'wire:loading.delay.' . config('filament.livewire_loading_delay', 'default') => '',
|
|
'wire:target' => 'tableFilters,applyTableFilters,resetTableFiltersForm',
|
|
])
|
|
)->class(['h-5 w-5 text-gray-400 dark:text-gray-500'])
|
|
)]); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginalbef7c2371a870b1887ec3741fe311a10)): ?>
|
|
<?php $attributes = $__attributesOriginalbef7c2371a870b1887ec3741fe311a10; ?>
|
|
<?php unset($__attributesOriginalbef7c2371a870b1887ec3741fe311a10); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginalbef7c2371a870b1887ec3741fe311a10)): ?>
|
|
<?php $component = $__componentOriginalbef7c2371a870b1887ec3741fe311a10; ?>
|
|
<?php unset($__componentOriginalbef7c2371a870b1887ec3741fe311a10); ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php echo e($form); ?>
|
|
|
|
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($applyAction->isVisible()): ?>
|
|
<div>
|
|
<?php echo e($applyAction); ?>
|
|
|
|
</div>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
</div>
|
|
<?php /**PATH C:\Users\Owner\Virtnet.bond\vendor\filament\tables\resources\views\components\filters\index.blade.php ENDPATH**/ ?>
|