add: full multi-tenancy control
This commit is contained in:
656
storage/framework/views/145f549e76f755f6f7d6fb78aad72562.php
Executable file
656
storage/framework/views/145f549e76f755f6f7d6fb78aad72562.php
Executable file
@@ -0,0 +1,656 @@
|
||||
<?php $__currentLoopData = $webForm->attributes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attribute): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<?php
|
||||
$parentAttribute = $attribute->attribute;
|
||||
|
||||
$fieldName = $parentAttribute->entity_type . '[' . $parentAttribute->code . ']';
|
||||
|
||||
$validations = $attribute->is_required ? 'required' : '';
|
||||
?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginalaa2c570b4debe08629bee17c1212da53 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalaa2c570b4debe08629bee17c1212da53 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.index','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group'); ?>
|
||||
<?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([]); ?>
|
||||
<?php if (isset($component)) { $__componentOriginal87a34b851b94a19a1de85807906bf78b = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal87a34b851b94a19a1de85807906bf78b = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.label','data' => ['for' => $fieldName,'class' => ''.e($validations).'','style' => 'color: '.e($webForm->attribute_label_color).' !important;']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.label'); ?>
|
||||
<?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(['for' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'class' => ''.e($validations).'','style' => 'color: '.e($webForm->attribute_label_color).' !important;']); ?>
|
||||
<?php echo e($attribute->name ?? $parentAttribute->name); ?>
|
||||
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal87a34b851b94a19a1de85807906bf78b)): ?>
|
||||
<?php $attributes = $__attributesOriginal87a34b851b94a19a1de85807906bf78b; ?>
|
||||
<?php unset($__attributesOriginal87a34b851b94a19a1de85807906bf78b); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal87a34b851b94a19a1de85807906bf78b)): ?>
|
||||
<?php $component = $__componentOriginal87a34b851b94a19a1de85807906bf78b; ?>
|
||||
<?php unset($__componentOriginal87a34b851b94a19a1de85807906bf78b); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php switch($parentAttribute->type):
|
||||
case ('text'): ?>
|
||||
<?php if (isset($component)) { $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.control','data' => ['type' => 'text','name' => $fieldName,'id' => $fieldName,'rules' => $validations,'label' => $attribute->name ?? $parentAttribute->name,'placeholder' => $attribute->placeholder]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.control'); ?>
|
||||
<?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(['type' => 'text','name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'rules' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($validations),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->name ?? $parentAttribute->name),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->placeholder)]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $attributes = $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $component = $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal3d330a40c642c38a3757c8a46324d236 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal3d330a40c642c38a3757c8a46324d236 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.error','data' => ['controlName' => $fieldName]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.error'); ?>
|
||||
<?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(['control-name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName)]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $attributes = $__attributesOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__attributesOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $component = $__componentOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__componentOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('price'): ?>
|
||||
<?php if (isset($component)) { $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.control','data' => ['type' => 'text','name' => $fieldName,'id' => $fieldName,'rules' => $validations.'|numeric','label' => $attribute->name ?? $parentAttribute->name,'placeholder' => $attribute->placeholder]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.control'); ?>
|
||||
<?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(['type' => 'text','name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'rules' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($validations.'|numeric'),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->name ?? $parentAttribute->name),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->placeholder)]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $attributes = $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $component = $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal3d330a40c642c38a3757c8a46324d236 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal3d330a40c642c38a3757c8a46324d236 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.error','data' => ['controlName' => $fieldName]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.error'); ?>
|
||||
<?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(['control-name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName)]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $attributes = $__attributesOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__attributesOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $component = $__componentOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__componentOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('email'): ?>
|
||||
<?php if (isset($component)) { $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.control','data' => ['type' => 'email','name' => ''.e($fieldName).'[0][value]','id' => ''.e($fieldName).'[0][value]','rules' => ''.e($validations).'|email','label' => $attribute->name ?? $parentAttribute->name,'placeholder' => $attribute->placeholder]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.control'); ?>
|
||||
<?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(['type' => 'email','name' => ''.e($fieldName).'[0][value]','id' => ''.e($fieldName).'[0][value]','rules' => ''.e($validations).'|email','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->name ?? $parentAttribute->name),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->placeholder)]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $attributes = $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $component = $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.control','data' => ['type' => 'hidden','name' => ''.e($fieldName).'[0][label]','id' => ''.e($fieldName).'[0][label]','rules' => 'required','value' => 'work']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.control'); ?>
|
||||
<?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(['type' => 'hidden','name' => ''.e($fieldName).'[0][label]','id' => ''.e($fieldName).'[0][label]','rules' => 'required','value' => 'work']); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $attributes = $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $component = $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal3d330a40c642c38a3757c8a46324d236 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal3d330a40c642c38a3757c8a46324d236 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.error','data' => ['controlName' => ''.e($fieldName).'[0][value]']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.error'); ?>
|
||||
<?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(['control-name' => ''.e($fieldName).'[0][value]']); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $attributes = $__attributesOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__attributesOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $component = $__componentOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__componentOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('checkbox'): ?>
|
||||
<?php
|
||||
$options = $parentAttribute->lookup_type
|
||||
? app('Webkul\Attribute\Repositories\AttributeRepository')->getLookUpOptions($parentAttribute->lookup_type)
|
||||
: $parentAttribute->options()->orderBy('sort_order')->get();
|
||||
?>
|
||||
|
||||
<?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<?php if (isset($component)) { $__componentOriginalaa2c570b4debe08629bee17c1212da53 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalaa2c570b4debe08629bee17c1212da53 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.index','data' => ['class' => '!mb-2 flex select-none items-center gap-2.5']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group'); ?>
|
||||
<?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(['class' => '!mb-2 flex select-none items-center gap-2.5']); ?>
|
||||
<?php if (isset($component)) { $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.control','data' => ['type' => 'checkbox','name' => ''.e($fieldName).'[]','id' => ''.e($fieldName).'[]','value' => ''.e($option->id).'','for' => ''.e($fieldName).'[]']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.control'); ?>
|
||||
<?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(['type' => 'checkbox','name' => ''.e($fieldName).'[]','id' => ''.e($fieldName).'[]','value' => ''.e($option->id).'','for' => ''.e($fieldName).'[]']); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $attributes = $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $component = $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<label
|
||||
class="cursor-pointer text-xs font-medium text-gray-600 dark:text-gray-300"
|
||||
for="<?php echo e($fieldName); ?>[]"
|
||||
>
|
||||
<?php echo app('translator')->get('web_form::app.catalog.attributes.edit.is-required'); ?>
|
||||
</label>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginalaa2c570b4debe08629bee17c1212da53)): ?>
|
||||
<?php $attributes = $__attributesOriginalaa2c570b4debe08629bee17c1212da53; ?>
|
||||
<?php unset($__attributesOriginalaa2c570b4debe08629bee17c1212da53); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginalaa2c570b4debe08629bee17c1212da53)): ?>
|
||||
<?php $component = $__componentOriginalaa2c570b4debe08629bee17c1212da53; ?>
|
||||
<?php unset($__componentOriginalaa2c570b4debe08629bee17c1212da53); ?>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
|
||||
<?php case ('file'): ?>
|
||||
<?php case ('image'): ?>
|
||||
<?php if (isset($component)) { $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.control','data' => ['type' => 'file','name' => $fieldName,'id' => $fieldName,'rules' => $validations,'placeholder' => $attribute->placeholder,'label' => $attribute->name ?? $parentAttribute->name]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.control'); ?>
|
||||
<?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(['type' => 'file','name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'rules' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($validations),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->placeholder),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->name ?? $parentAttribute->name)]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $attributes = $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $component = $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal3d330a40c642c38a3757c8a46324d236 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal3d330a40c642c38a3757c8a46324d236 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.error','data' => ['controlName' => ''.e($fieldName).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.error'); ?>
|
||||
<?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(['control-name' => ''.e($fieldName).'']); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $attributes = $__attributesOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__attributesOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $component = $__componentOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__componentOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php break; ?>;
|
||||
|
||||
<?php case ('phone'): ?>
|
||||
<?php if (isset($component)) { $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.control','data' => ['type' => 'text','name' => ''.e($fieldName).'[0][value]','id' => ''.e($fieldName).'[0][value]','rules' => ''.e($validations).'|phone','label' => $attribute->name ?? $parentAttribute->name,'placeholder' => $attribute->placeholder]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.control'); ?>
|
||||
<?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(['type' => 'text','name' => ''.e($fieldName).'[0][value]','id' => ''.e($fieldName).'[0][value]','rules' => ''.e($validations).'|phone','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->name ?? $parentAttribute->name),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->placeholder)]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $attributes = $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $component = $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.control','data' => ['type' => 'hidden','name' => ''.e($fieldName).'[0][label]','id' => ''.e($fieldName).'[0][label]','rules' => 'required','value' => 'work']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.control'); ?>
|
||||
<?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(['type' => 'hidden','name' => ''.e($fieldName).'[0][label]','id' => ''.e($fieldName).'[0][label]','rules' => 'required','value' => 'work']); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $attributes = $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $component = $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal3d330a40c642c38a3757c8a46324d236 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal3d330a40c642c38a3757c8a46324d236 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.error','data' => ['controlName' => ''.e($fieldName).'[0][value]']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.error'); ?>
|
||||
<?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(['control-name' => ''.e($fieldName).'[0][value]']); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $attributes = $__attributesOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__attributesOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $component = $__componentOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__componentOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('date'): ?>
|
||||
<?php if (isset($component)) { $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.control','data' => ['type' => 'date','name' => $fieldName,'id' => $fieldName,'rules' => $validations,'label' => $attribute->name ?? $parentAttribute->name,'placeholder' => $attribute->placeholder]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.control'); ?>
|
||||
<?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(['type' => 'date','name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'rules' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($validations),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->name ?? $parentAttribute->name),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->placeholder)]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $attributes = $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $component = $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal3d330a40c642c38a3757c8a46324d236 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal3d330a40c642c38a3757c8a46324d236 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.error','data' => ['controlName' => $fieldName]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.error'); ?>
|
||||
<?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(['control-name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName)]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $attributes = $__attributesOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__attributesOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $component = $__componentOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__componentOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('datetime'): ?>
|
||||
<?php if (isset($component)) { $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.control','data' => ['type' => 'datetime','name' => $fieldName,'id' => $fieldName,'rules' => $validations,'label' => $attribute->name ?? $parentAttribute->name,'placeholder' => $attribute->placeholder]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.control'); ?>
|
||||
<?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(['type' => 'datetime','name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'rules' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($validations),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->name ?? $parentAttribute->name),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->placeholder)]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $attributes = $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $component = $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal3d330a40c642c38a3757c8a46324d236 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal3d330a40c642c38a3757c8a46324d236 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.error','data' => ['controlName' => $fieldName]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.error'); ?>
|
||||
<?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(['control-name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName)]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $attributes = $__attributesOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__attributesOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $component = $__componentOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__componentOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('select'): ?>
|
||||
<?php case ('lookup'): ?>
|
||||
<?php
|
||||
$options = $parentAttribute->lookup_type
|
||||
? app('Webkul\Attribute\Repositories\AttributeRepository')->getLookUpOptions($parentAttribute->lookup_type)
|
||||
: $parentAttribute->options()->orderBy('sort_order')->get();
|
||||
?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.control','data' => ['type' => 'select','name' => $fieldName,'id' => $fieldName,'rules' => $validations,'label' => $attribute->name ?? $parentAttribute->name,'placeholder' => $attribute->placeholder]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.control'); ?>
|
||||
<?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(['type' => 'select','name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'rules' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($validations),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->name ?? $parentAttribute->name),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->placeholder)]); ?>
|
||||
<?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($option->id); ?>"><?php echo e($option->name); ?></option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $attributes = $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $component = $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal3d330a40c642c38a3757c8a46324d236 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal3d330a40c642c38a3757c8a46324d236 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.error','data' => ['controlName' => $fieldName]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.error'); ?>
|
||||
<?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(['control-name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName)]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $attributes = $__attributesOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__attributesOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $component = $__componentOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__componentOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('multiselect'): ?>
|
||||
<?php
|
||||
$options = $parentAttribute->lookup_type
|
||||
? app('Webkul\Attribute\Repositories\AttributeRepository')->getLookUpOptions($parentAttribute->lookup_type)
|
||||
: $parentAttribute->options()->orderBy('sort_order')->get();
|
||||
?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.control','data' => ['type' => 'select','id' => ''.e($fieldName).'','name' => ''.e($fieldName).'[]','rules' => $validations,'label' => $attribute->name ?? $parentAttribute->name,'placeholder' => $attribute->placeholder]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.control'); ?>
|
||||
<?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(['type' => 'select','id' => ''.e($fieldName).'','name' => ''.e($fieldName).'[]','rules' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($validations),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->name ?? $parentAttribute->name),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->placeholder)]); ?>
|
||||
<?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($option->id); ?>"><?php echo e($option->name); ?></option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $attributes = $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $component = $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal3d330a40c642c38a3757c8a46324d236 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal3d330a40c642c38a3757c8a46324d236 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.error','data' => ['controlName' => $fieldName]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.error'); ?>
|
||||
<?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(['control-name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName)]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $attributes = $__attributesOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__attributesOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $component = $__componentOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__componentOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('checkbox'): ?>
|
||||
<div class="checkbox-control">
|
||||
<?php
|
||||
$options = $parentAttribute->lookup_type
|
||||
? app('Webkul\Attribute\Repositories\AttributeRepository')->getLookUpOptions($parentAttribute->lookup_type)
|
||||
: $parentAttribute->options()->orderBy('sort_order')->get();
|
||||
?>
|
||||
|
||||
<?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<span class="checkbox">
|
||||
<input
|
||||
type="checkbox"
|
||||
name="<?php echo e($fieldName); ?>[]"
|
||||
value="<?php echo e($option->id); ?>"
|
||||
/>
|
||||
|
||||
<label class="checkbox-view" style="display: inline;"></label>
|
||||
<?php echo e($option->name); ?>
|
||||
|
||||
</span>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</div>
|
||||
|
||||
<p
|
||||
id="<?php echo e($fieldName); ?>[]-error"
|
||||
class="error-message mt-1 text-xs italic text-red-600"
|
||||
></p>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('boolean'): ?>
|
||||
<?php if (isset($component)) { $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.control','data' => ['type' => 'select','name' => $fieldName,'id' => $fieldName,'rules' => $validations,'label' => $attribute->name ?? $parentAttribute->name,'placeholder' => $attribute->placeholder]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.control'); ?>
|
||||
<?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(['type' => 'select','name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName),'rules' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($validations),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->name ?? $parentAttribute->name),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attribute->placeholder)]); ?>
|
||||
<option value="1">Yes</option>
|
||||
<option value="0">No</option>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $attributes = $__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__attributesOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525)): ?>
|
||||
<?php $component = $__componentOriginal50e445d5c2a51edc7ce3a1d54339f525; ?>
|
||||
<?php unset($__componentOriginal50e445d5c2a51edc7ce3a1d54339f525); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal3d330a40c642c38a3757c8a46324d236 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal3d330a40c642c38a3757c8a46324d236 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'web_form::components.form.control-group.error','data' => ['controlName' => $fieldName]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('web_form::form.control-group.error'); ?>
|
||||
<?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(['control-name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($fieldName)]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $attributes = $__attributesOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__attributesOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal3d330a40c642c38a3757c8a46324d236)): ?>
|
||||
<?php $component = $__componentOriginal3d330a40c642c38a3757c8a46324d236; ?>
|
||||
<?php unset($__componentOriginal3d330a40c642c38a3757c8a46324d236); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php break; ?>
|
||||
<?php endswitch; ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginalaa2c570b4debe08629bee17c1212da53)): ?>
|
||||
<?php $attributes = $__attributesOriginalaa2c570b4debe08629bee17c1212da53; ?>
|
||||
<?php unset($__attributesOriginalaa2c570b4debe08629bee17c1212da53); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginalaa2c570b4debe08629bee17c1212da53)): ?>
|
||||
<?php $component = $__componentOriginalaa2c570b4debe08629bee17c1212da53; ?>
|
||||
<?php unset($__componentOriginalaa2c570b4debe08629bee17c1212da53); ?>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
<?php /**PATH /var/www/html/packages/Webkul/WebForm/src/Resources/views/settings/web-forms/controls.blade.php ENDPATH**/ ?>
|
||||
Reference in New Issue
Block a user