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.
108 lines
7.4 KiB
PHP
108 lines
7.4 KiB
PHP
<?php
|
|
$hasInlineLabel = $hasInlineLabel();
|
|
$id = $getId();
|
|
$isDisabled = $isDisabled();
|
|
$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)) { $__componentOriginalfdab887de9877b48a57ef00a75a2effb = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginalfdab887de9877b48a57ef00a75a2effb = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.button.group','data' => ['attributes' =>
|
|
\Filament\Support\prepare_inherited_attributes($attributes)
|
|
->merge($getExtraAttributes(), escape: false)
|
|
->class(['w-max'])
|
|
]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('filament::button.group'); ?>
|
|
<?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($attributes)
|
|
->merge($getExtraAttributes(), escape: false)
|
|
->class(['w-max'])
|
|
)]); ?>
|
|
<?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);
|
|
?>
|
|
|
|
<input
|
|
<?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); ?>"
|
|
wire:loading.attr="disabled"
|
|
<?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,'grouped' => true,'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),'grouped' => true,'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; ?>
|
|
<?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($__attributesOriginalfdab887de9877b48a57ef00a75a2effb)): ?>
|
|
<?php $attributes = $__attributesOriginalfdab887de9877b48a57ef00a75a2effb; ?>
|
|
<?php unset($__attributesOriginalfdab887de9877b48a57ef00a75a2effb); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginalfdab887de9877b48a57ef00a75a2effb)): ?>
|
|
<?php $component = $__componentOriginalfdab887de9877b48a57ef00a75a2effb; ?>
|
|
<?php unset($__componentOriginalfdab887de9877b48a57ef00a75a2effb); ?>
|
|
<?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\grouped.blade.php ENDPATH**/ ?>
|