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.
124 lines
9.2 KiB
PHP
124 lines
9.2 KiB
PHP
<?php
|
|
$gridDirection = $getGridDirection() ?? 'column';
|
|
$hasInlineLabel = $hasInlineLabel();
|
|
$id = $getId();
|
|
$isDisabled = $isDisabled();
|
|
$isInline = $isInline();
|
|
$isMultiple = $isMultiple();
|
|
$statePath = $getStatePath();
|
|
$areButtonLabelsHidden = $areButtonLabelsHidden();
|
|
?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal511d4862ff04963c3c16115c05a86a9d = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal511d4862ff04963c3c16115c05a86a9d = $attributes; } ?>
|
|
<?php $component = Illuminate\View\DynamicComponent::resolve(['component' => $getFieldWrapperView()] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('dynamic-component'); ?>
|
|
<?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\DynamicComponent::ignoredParameterNames()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['field' => $field,'has-inline-label' => $hasInlineLabel]); ?>
|
|
<?php $__env->slot('label', null, ['class' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\Illuminate\Support\Arr::toCssClasses([
|
|
'sm:pt-1.5' => $hasInlineLabel,
|
|
]))]); ?>
|
|
<?php echo e($getLabel()); ?>
|
|
|
|
<?php $__env->endSlot(); ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal30dbd75eb120a380110a2b340cd88f46 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal30dbd75eb120a380110a2b340cd88f46 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.grid.index','data' => ['default' => $getColumns('default'),'sm' => $getColumns('sm'),'md' => $getColumns('md'),'lg' => $getColumns('lg'),'xl' => $getColumns('xl'),'twoXl' => $getColumns('2xl'),'isGrid' => ! $isInline,'direction' => $gridDirection,'attributes' =>
|
|
\Filament\Support\prepare_inherited_attributes($attributes)
|
|
->merge($getExtraAttributes(), escape: false)
|
|
->class([
|
|
'fi-fo-toggle-buttons gap-3',
|
|
'-mt-3' => (! $isInline) && ($gridDirection === 'column'),
|
|
'flex flex-wrap' => $isInline,
|
|
])
|
|
]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('filament::grid'); ?>
|
|
<?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(['default' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($getColumns('default')),'sm' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($getColumns('sm')),'md' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($getColumns('md')),'lg' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($getColumns('lg')),'xl' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($getColumns('xl')),'two-xl' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($getColumns('2xl')),'is-grid' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(! $isInline),'direction' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($gridDirection),'attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(
|
|
\Filament\Support\prepare_inherited_attributes($attributes)
|
|
->merge($getExtraAttributes(), escape: false)
|
|
->class([
|
|
'fi-fo-toggle-buttons gap-3',
|
|
'-mt-3' => (! $isInline) && ($gridDirection === 'column'),
|
|
'flex flex-wrap' => $isInline,
|
|
])
|
|
)]); ?>
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $getOptions(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<?php
|
|
$inputId = "{$id}-{$value}";
|
|
$shouldOptionBeDisabled = $isDisabled || $isOptionDisabled($value, $label);
|
|
?>
|
|
|
|
<div
|
|
class="<?php echo \Illuminate\Support\Arr::toCssClasses([
|
|
'break-inside-avoid pt-3' => (! $isInline) && ($gridDirection === 'column'),
|
|
]); ?>"
|
|
>
|
|
<input
|
|
<?php if($loop->first && $isAutofocused()): ?> autofocus <?php endif; ?>
|
|
<?php if($shouldOptionBeDisabled): echo 'disabled'; endif; ?>
|
|
id="<?php echo e($inputId); ?>"
|
|
<?php if(! $isMultiple): ?>
|
|
name="<?php echo e($id); ?>"
|
|
<?php endif; ?>
|
|
type="<?php echo e($isMultiple ? 'checkbox' : 'radio'); ?>"
|
|
value="<?php echo e($value); ?>"
|
|
<?php echo e($applyStateBindingModifiers('wire:model')); ?>="<?php echo e($statePath); ?>"
|
|
<?php echo e($getExtraInputAttributeBag()->class(['peer pointer-events-none absolute opacity-0'])); ?>
|
|
|
|
/>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal6330f08526bbb3ce2a0da37da512a11f = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal6330f08526bbb3ce2a0da37da512a11f = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.button.index','data' => ['color' => $getColor($value),'disabled' => $shouldOptionBeDisabled,'for' => $inputId,'icon' => $getIcon($value),'labelSrOnly' => $areButtonLabelsHidden,'tag' => 'label']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('filament::button'); ?>
|
|
<?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(['color' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($getColor($value)),'disabled' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($shouldOptionBeDisabled),'for' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($inputId),'icon' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($getIcon($value)),'label-sr-only' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($areButtonLabelsHidden),'tag' => 'label']); ?>
|
|
<?php echo e($label); ?>
|
|
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal6330f08526bbb3ce2a0da37da512a11f)): ?>
|
|
<?php $attributes = $__attributesOriginal6330f08526bbb3ce2a0da37da512a11f; ?>
|
|
<?php unset($__attributesOriginal6330f08526bbb3ce2a0da37da512a11f); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal6330f08526bbb3ce2a0da37da512a11f)): ?>
|
|
<?php $component = $__componentOriginal6330f08526bbb3ce2a0da37da512a11f; ?>
|
|
<?php unset($__componentOriginal6330f08526bbb3ce2a0da37da512a11f); ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal30dbd75eb120a380110a2b340cd88f46)): ?>
|
|
<?php $attributes = $__attributesOriginal30dbd75eb120a380110a2b340cd88f46; ?>
|
|
<?php unset($__attributesOriginal30dbd75eb120a380110a2b340cd88f46); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal30dbd75eb120a380110a2b340cd88f46)): ?>
|
|
<?php $component = $__componentOriginal30dbd75eb120a380110a2b340cd88f46; ?>
|
|
<?php unset($__componentOriginal30dbd75eb120a380110a2b340cd88f46); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal511d4862ff04963c3c16115c05a86a9d)): ?>
|
|
<?php $attributes = $__attributesOriginal511d4862ff04963c3c16115c05a86a9d; ?>
|
|
<?php unset($__attributesOriginal511d4862ff04963c3c16115c05a86a9d); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal511d4862ff04963c3c16115c05a86a9d)): ?>
|
|
<?php $component = $__componentOriginal511d4862ff04963c3c16115c05a86a9d; ?>
|
|
<?php unset($__componentOriginal511d4862ff04963c3c16115c05a86a9d); ?>
|
|
<?php endif; ?>
|
|
<?php /**PATH C:\Users\Owner\Virtnet.bond\vendor\filament\forms\resources\views\components\toggle-buttons\index.blade.php ENDPATH**/ ?>
|