64 lines
3.5 KiB
PHP
Executable File
64 lines
3.5 KiB
PHP
Executable File
<?php
|
|
if (!function_exists('__6321f0e85db397741b422f7f845e3c2d')):
|
|
function __6321f0e85db397741b422f7f845e3c2d($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
|
$__env = $__blaze->env;
|
|
$__slots['slot'] ??= new \Illuminate\View\ComponentSlot('');
|
|
if (($__data['attributes'] ?? null) instanceof \Illuminate\View\ComponentAttributeBag) { $__data = $__data + $__data['attributes']->all(); unset($__data['attributes']); }
|
|
extract($__slots, EXTR_SKIP); unset($__slots);
|
|
extract($__data, EXTR_SKIP);
|
|
$attributes = \Livewire\Blaze\Runtime\BlazeAttributeBag::make($__data, $__bound, $__keys);
|
|
unset($__data, $__bound, $__keys);
|
|
ob_start();
|
|
?>
|
|
|
|
|
|
|
|
<?php
|
|
$__defaults = [
|
|
'name' => null,
|
|
'variant' => null,
|
|
'size' => null,
|
|
];
|
|
$name ??= $attributes['name'] ?? $__defaults['name']; unset($attributes['name']);
|
|
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
|
$size ??= $attributes['size'] ?? $__defaults['size']; unset($attributes['size']);
|
|
unset($__defaults);
|
|
?>
|
|
|
|
<?php
|
|
// We only want to show the name attribute on the checkbox if it has been set
|
|
// manually, but not if it has been set from the wire:model attribute...
|
|
$showName = isset($name);
|
|
|
|
if (! isset($name)) {
|
|
$name = $attributes->whereStartsWith('wire:model')->first();
|
|
}
|
|
|
|
$classes = Flux::classes()
|
|
->add('block flex p-1')
|
|
->add('rounded-lg bg-zinc-800/5 dark:bg-white/10')
|
|
->add($size === 'sm' ? 'h-8 py-[3px] px-[3px]' : 'h-10 p-1')
|
|
->add($size === 'sm' ? '-my-px h-[calc(2rem+2px)]' : '')
|
|
;
|
|
?>
|
|
|
|
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Concepts/WMS_Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-field.blade.php', $__blaze->compiledPath.'/c47a7698d859fe0603a8ccaf476ef2fa.php'); ?>
|
|
<?php if (isset($__slotsc47a7698d859fe0603a8ccaf476ef2fa)) { $__slotsStackc47a7698d859fe0603a8ccaf476ef2fa[] = $__slotsc47a7698d859fe0603a8ccaf476ef2fa; } ?>
|
|
<?php if (isset($__attrsc47a7698d859fe0603a8ccaf476ef2fa)) { $__attrsStackc47a7698d859fe0603a8ccaf476ef2fa[] = $__attrsc47a7698d859fe0603a8ccaf476ef2fa; } ?>
|
|
<?php $__attrsc47a7698d859fe0603a8ccaf476ef2fa = ['attributes' => $attributes]; ?>
|
|
<?php $__slotsc47a7698d859fe0603a8ccaf476ef2fa = []; ?>
|
|
<?php $__blaze->pushData($__attrsc47a7698d859fe0603a8ccaf476ef2fa); ?>
|
|
<?php ob_start(); ?>
|
|
<ui-radio-group <?php echo e($attributes->class($classes)); ?> <?php if($showName): ?> name="<?php echo e($name); ?>" <?php endif; ?> data-flux-radio-group-segmented>
|
|
<?php echo e($slot); ?>
|
|
|
|
</ui-radio-group>
|
|
<?php $__slotsc47a7698d859fe0603a8ccaf476ef2fa['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
|
<?php $__blaze->pushSlots($__slotsc47a7698d859fe0603a8ccaf476ef2fa); ?>
|
|
<?php __c47a7698d859fe0603a8ccaf476ef2fa($__blaze, $__attrsc47a7698d859fe0603a8ccaf476ef2fa, $__slotsc47a7698d859fe0603a8ccaf476ef2fa, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
|
<?php if (! empty($__slotsStackc47a7698d859fe0603a8ccaf476ef2fa)) { $__slotsc47a7698d859fe0603a8ccaf476ef2fa = array_pop($__slotsStackc47a7698d859fe0603a8ccaf476ef2fa); } ?>
|
|
<?php if (! empty($__attrsStackc47a7698d859fe0603a8ccaf476ef2fa)) { $__attrsc47a7698d859fe0603a8ccaf476ef2fa = array_pop($__attrsStackc47a7698d859fe0603a8ccaf476ef2fa); } ?>
|
|
<?php $__blaze->popData(); ?>
|
|
<?php
|
|
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
|
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Concepts/WMS_Core/vendor/livewire/flux/src/../stubs/resources/views/flux/radio/group/variants/segmented.blade.php ENDPATH**/ ?>
|