| Current Path : /var/www/html/dynaweb-starter/storage/framework/views/ |
| Current File : /var/www/html/dynaweb-starter/storage/framework/views/6b02067a0d20546464fe15df9738a9b2.php |
<?php if (isset($component)) { $__componentOriginal511d4862ff04963c3c16115c05a86a9d = $component; } ?>
<?php $component = Illuminate\View\DynamicComponent::resolve(['component' => $getFieldWrapperView()] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?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 && $constructor = (new ReflectionClass(Illuminate\View\DynamicComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['field' => $field]); ?>
<?php
$id = $getId();
$statePath = $getStatePath();
$isDisabled = $isDisabled();
$options = $getOptions();
$offColor = $getOffColor() ?? 'gray';
$onColor = $getOnColor() ?? 'primary';
$gridDirection = $getGridDirection() ?? 'column';
$icons = $getIcons();
$iconPosition = $getIconPosition();
$iconSize = $getIconSize();
?>
<div
class="<?php echo \Illuminate\Support\Arr::toCssClasses([
'selectify-button-group-grid',
'grid grid-flow-row grid-cols-2 gap-3' => $gridDirection === 'row',
'grid grid-flow-col grid-rows-2 gap-3' => $gridDirection === 'column',
]); ?>"
x-data="{
state: $wire.<?php echo e($applyStateBindingModifiers("entangle('{$statePath}')")); ?>,
getColor(color) {
return color === 'gray'
? 'bg-white text-gray-950 hover:bg-gray-50 dark:bg-white/5 dark:text-white dark:hover:bg-white/10 ring-1 ring-gray-950/10 dark:ring-white/20'
: 'bg-custom-600 text-white hover:bg-custom-500 dark:bg-custom-500 dark:hover:bg-custom-400 focus:ring-custom-500/50 dark:focus:ring-custom-400/50';
}
}"
>
<!--[if BLOCK]><![endif]--><?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
$shouldOptionBeDisabled = $isDisabled || $isOptionDisabled($value, $label);
?>
<label
for="<?php echo e($id); ?>-<?php echo e($value); ?>"
x-on:click="state = '<?php echo e($value); ?>'"
x-bind:class="
state == '<?php echo e($value); ?>'
? getColor('<?php echo e($onColor); ?>')
: getColor('<?php echo e($offColor); ?>')
"
x-bind:style="
state == '<?php echo e($value); ?>'
? '<?php echo e(\Filament\Support\get_color_css_variables($onColor, shades: [600, 500, 400])); ?>'
: '<?php echo e(\Filament\Support\get_color_css_variables($offColor, shades: [600, 500, 400])); ?>'
"
<?php echo e($attributes
->merge($getExtraAttributes(), escape: false)
->merge($getExtraAlpineAttributes(), escape: false)
->class([
'selectify-button-group items-center justify-center font-semibold outline-none transition duration-75 focus:ring-2 rounded-lg gap-1.5 px-3 py-2 text-sm flex shadow-sm',
'opacity-70 pointer-events-none' => $shouldOptionBeDisabled,
'flex-row mr-1' => $iconPosition === \Filament\Support\Enums\IconPosition::Before || $iconPosition === 'before',
'flex-row-reverse ml-1' => $iconPosition === \Filament\Support\Enums\IconPosition::After || $iconPosition === 'after',
])); ?>
<?php echo e($getExtraAlpineAttributeBag()); ?>
>
<input
type="radio"
name="<?php echo e($id); ?>"
id="<?php echo e($id); ?>-<?php echo e($value); ?>"
value="<?php echo e($value); ?>"
class="sr-only"
aria-labelledby="<?php echo e($id); ?>-<?php echo e($value); ?>"
<?php if($shouldOptionBeDisabled): echo 'disabled'; endif; ?>
wire:loading.attr="disabled"
/>
<!--[if BLOCK]><![endif]--><?php if(filled($icons)): ?>
<?php if (isset($component)) { $__componentOriginal71c6471fa76ce19017edc287b6f4508c = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.icon','data' => ['icon' => ''.e($icons[$value]).'','class' => \Illuminate\Support\Arr::toCssClasses([
match ($iconSize) {
\Filament\Support\Enums\IconSize::Small, 'sm' => 'h-4 w-4 mt-1',
\Filament\Support\Enums\IconSize::Medium, 'md' => 'h-5 w-5 mt-0.5',
\Filament\Support\Enums\IconSize::Large, 'lg' => 'h-6 w-6',
default => $iconSize,
},
])]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('filament::icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['icon' => ''.e($icons[$value]).'','class' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\Illuminate\Support\Arr::toCssClasses([
match ($iconSize) {
\Filament\Support\Enums\IconSize::Small, 'sm' => 'h-4 w-4 mt-1',
\Filament\Support\Enums\IconSize::Medium, 'md' => 'h-5 w-5 mt-0.5',
\Filament\Support\Enums\IconSize::Large, 'lg' => 'h-6 w-6',
default => $iconSize,
},
]))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal71c6471fa76ce19017edc287b6f4508c)): ?>
<?php $component = $__componentOriginal71c6471fa76ce19017edc287b6f4508c; ?>
<?php unset($__componentOriginal71c6471fa76ce19017edc287b6f4508c); ?>
<?php endif; ?>
<?php endif; ?> <!--[if ENDBLOCK]><![endif]-->
<?php echo e($label); ?>
</label>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!--[if ENDBLOCK]><![endif]-->
</div>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal511d4862ff04963c3c16115c05a86a9d)): ?>
<?php $component = $__componentOriginal511d4862ff04963c3c16115c05a86a9d; ?>
<?php unset($__componentOriginal511d4862ff04963c3c16115c05a86a9d); ?>
<?php endif; ?>
<?php /**PATH /var/www/html/dynaweb-starter/vendor/andrewdwallo/filament-selectify/src/../resources/views/components/button-group.blade.php ENDPATH**/ ?>