Files
growup-crm/storage/framework/views/857502e84b2e3d811ca62093f06a83ef.php
2026-02-02 15:31:15 -03:00

49 lines
1.6 KiB
PHP
Executable File

<!--
If a component has the `as` attribute, it indicates that it uses
the ajaxified form or some customized slot form.
-->
<?php if($attributes->has('as')): ?>
<v-form <?php echo e($attributes); ?>>
<?php echo e($slot); ?>
</v-form>
<!--
Otherwise, a traditional form will be provided with a minimal
set of configurations.
-->
<?php else: ?>
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; ?>
<?php foreach($attributes->onlyProps(['method' => 'POST']) as $__key => $__value) {
$$__key = $$__key ?? $__value;
} ?>
<?php $attributes = $attributes->exceptProps(['method' => 'POST']); ?>
<?php foreach (array_filter((['method' => 'POST']), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
$$__key = $$__key ?? $__value;
} ?>
<?php $__defined_vars = get_defined_vars(); ?>
<?php foreach ($attributes as $__key => $__value) {
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
} ?>
<?php unset($__defined_vars); ?>
<?php $method = strtoupper($method); ?>
<v-form
method="<?php echo e($method === 'GET' ? 'GET' : 'POST'); ?>"
v-slot="{ meta, errors, setValues }"
<?php echo e($attributes); ?>
>
<?php if (! (in_array($method, ['HEAD', 'GET', 'OPTIONS']))): ?>
<?php echo csrf_field(); ?>
<?php endif; ?>
<?php if(! in_array($method, ['GET', 'POST'])): ?>
<?php echo method_field($method); ?>
<?php endif; ?>
<?php echo e($slot); ?>
</v-form>
<?php endif; ?><?php /**PATH /var/www/html/packages/Webkul/Installer/src/Resources/views/components/form/index.blade.php ENDPATH**/ ?>