<?php if (isset($component)) { $__componentOriginalb9149c5834933a7cc028dc0044fe1532 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb9149c5834933a7cc028dc0044fe1532 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.model','data' => ['id' => 'create-model','class' => 'lg:max-w-2xl','button' => 'Submit','formId' => 'component-create','action' => route('component.store'),'method' => __('post')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.model'); ?>
<?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(['id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('create-model'),'class' => 'lg:max-w-2xl','button' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Submit'),'form_id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('component-create'),'action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('component.store')),'method' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('post'))]); ?>
    <?php echo csrf_field(); ?>
    <div class="p-4 sm:p-10 overflow-y-auto  space-y-2">
        <?php if (isset($component)) { $__componentOriginale997ded79ddaf38dceb79598bb7493fb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale997ded79ddaf38dceb79598bb7493fb = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-label','data' => ['value' => 'Component Name','for' => 'component-name']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-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(['value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Component Name'),'for' => 'component-name']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $attributes = $__attributesOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $component = $__componentOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__componentOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
        <?php if (isset($component)) { $__componentOriginal520997795032a081472e524d174f39d0 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal520997795032a081472e524d174f39d0 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-field','data' => ['type' => 'text','name' => 'name','id' => 'component-name','value' => old('name'),'placeholder' => 'Enter Component name','required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-field'); ?>
<?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' => 'name','id' => 'component-name','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(old('name')),'placeholder' => 'Enter Component name','required' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal520997795032a081472e524d174f39d0)): ?>
<?php $attributes = $__attributesOriginal520997795032a081472e524d174f39d0; ?>
<?php unset($__attributesOriginal520997795032a081472e524d174f39d0); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal520997795032a081472e524d174f39d0)): ?>
<?php $component = $__componentOriginal520997795032a081472e524d174f39d0; ?>
<?php unset($__componentOriginal520997795032a081472e524d174f39d0); ?>
<?php endif; ?>
        <div class="component-field">
            <?php if (isset($component)) { $__componentOriginale997ded79ddaf38dceb79598bb7493fb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale997ded79ddaf38dceb79598bb7493fb = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-label','data' => ['value' => 'Component field','for' => 'component']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-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(['value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Component field'),'for' => 'component']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $attributes = $__attributesOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $component = $__componentOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__componentOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginaleaf4d3fa0aec9033615c0afdc9c537c1 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginaleaf4d3fa0aec9033615c0afdc9c537c1 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-select','data' => ['id' => 'component','class' => 'field','values' => input(),'placeholder' => 'Select one','selected' => '','required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-select'); ?>
<?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(['id' => 'component','class' => 'field','values' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(input()),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Select one'),'selected' => '','required' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginaleaf4d3fa0aec9033615c0afdc9c537c1)): ?>
<?php $attributes = $__attributesOriginaleaf4d3fa0aec9033615c0afdc9c537c1; ?>
<?php unset($__attributesOriginaleaf4d3fa0aec9033615c0afdc9c537c1); ?>
<?php endif; ?>
<?php if (isset($__componentOriginaleaf4d3fa0aec9033615c0afdc9c537c1)): ?>
<?php $component = $__componentOriginaleaf4d3fa0aec9033615c0afdc9c537c1; ?>
<?php unset($__componentOriginaleaf4d3fa0aec9033615c0afdc9c537c1); ?>
<?php endif; ?>
            <div class="field-list mt-2">


            </div>
        </div>

        <div class="database-field">
            <div class="flex items-center mt-4">
                <?php if (isset($component)) { $__componentOriginal7a36f80ed2088f1305af3fd71cafc1f7 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7a36f80ed2088f1305af3fd71cafc1f7 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-switch','data' => ['id' => 'database','name' => 'set_from','value' => 'database']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-switch'); ?>
<?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(['id' => 'database','name' => 'set_from','value' => 'database']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7a36f80ed2088f1305af3fd71cafc1f7)): ?>
<?php $attributes = $__attributesOriginal7a36f80ed2088f1305af3fd71cafc1f7; ?>
<?php unset($__attributesOriginal7a36f80ed2088f1305af3fd71cafc1f7); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7a36f80ed2088f1305af3fd71cafc1f7)): ?>
<?php $component = $__componentOriginal7a36f80ed2088f1305af3fd71cafc1f7; ?>
<?php unset($__componentOriginal7a36f80ed2088f1305af3fd71cafc1f7); ?>
<?php endif; ?>
                <?php if (isset($component)) { $__componentOriginale997ded79ddaf38dceb79598bb7493fb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale997ded79ddaf38dceb79598bb7493fb = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-label','data' => ['value' => 'From database','class' => ' ms-3','for' => 'database']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-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(['value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('From database'),'class' => ' ms-3','for' => 'database']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $attributes = $__attributesOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $component = $__componentOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__componentOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
                <?php if (isset($component)) { $__componentOriginal7a36f80ed2088f1305af3fd71cafc1f7 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7a36f80ed2088f1305af3fd71cafc1f7 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-switch','data' => ['id' => 'custom','class' => 'ml-10','name' => 'set_from','value' => 'custom']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-switch'); ?>
<?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(['id' => 'custom','class' => 'ml-10','name' => 'set_from','value' => 'custom']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7a36f80ed2088f1305af3fd71cafc1f7)): ?>
<?php $attributes = $__attributesOriginal7a36f80ed2088f1305af3fd71cafc1f7; ?>
<?php unset($__attributesOriginal7a36f80ed2088f1305af3fd71cafc1f7); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7a36f80ed2088f1305af3fd71cafc1f7)): ?>
<?php $component = $__componentOriginal7a36f80ed2088f1305af3fd71cafc1f7; ?>
<?php unset($__componentOriginal7a36f80ed2088f1305af3fd71cafc1f7); ?>
<?php endif; ?>
                <?php if (isset($component)) { $__componentOriginale997ded79ddaf38dceb79598bb7493fb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale997ded79ddaf38dceb79598bb7493fb = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-label','data' => ['value' => 'Custom','class' => ' ms-3 ','name' => 'set_custom','for' => 'custom']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-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(['value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Custom'),'class' => ' ms-3 ','name' => 'set_custom','for' => 'custom']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $attributes = $__attributesOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $component = $__componentOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__componentOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
            </div>
            <div class="add-database mt-4 space-y-2">

            </div>
        </div>


    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb9149c5834933a7cc028dc0044fe1532)): ?>
<?php $attributes = $__attributesOriginalb9149c5834933a7cc028dc0044fe1532; ?>
<?php unset($__attributesOriginalb9149c5834933a7cc028dc0044fe1532); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb9149c5834933a7cc028dc0044fe1532)): ?>
<?php $component = $__componentOriginalb9149c5834933a7cc028dc0044fe1532; ?>
<?php unset($__componentOriginalb9149c5834933a7cc028dc0044fe1532); ?>
<?php endif; ?>

<script>
    $(document).on('change', '#database', function() {
        let status = $(this).parents('.database-field').find('#database').is(':checked');
        $(this).parents('.database-field').find('#custom').prop('checked', false);
        if (status) {
            let element = `
            <?php if (isset($component)) { $__componentOriginale997ded79ddaf38dceb79598bb7493fb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale997ded79ddaf38dceb79598bb7493fb = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-label','data' => ['value' => 'Database name','for' => 'database-name']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-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(['value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Database name'),'for' => 'database-name']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $attributes = $__attributesOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $component = $__componentOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__componentOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
        <?php if (isset($component)) { $__componentOriginal520997795032a081472e524d174f39d0 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal520997795032a081472e524d174f39d0 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-field','data' => ['type' => 'text','name' => 'database','id' => 'database-name','value' => old('database'),'placeholder' => 'Enter Database name','required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-field'); ?>
<?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' => 'database','id' => 'database-name','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(old('database')),'placeholder' => 'Enter Database name','required' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal520997795032a081472e524d174f39d0)): ?>
<?php $attributes = $__attributesOriginal520997795032a081472e524d174f39d0; ?>
<?php unset($__attributesOriginal520997795032a081472e524d174f39d0); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal520997795032a081472e524d174f39d0)): ?>
<?php $component = $__componentOriginal520997795032a081472e524d174f39d0; ?>
<?php unset($__componentOriginal520997795032a081472e524d174f39d0); ?>
<?php endif; ?>
        
            <?php if (isset($component)) { $__componentOriginale997ded79ddaf38dceb79598bb7493fb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale997ded79ddaf38dceb79598bb7493fb = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-label','data' => ['value' => 'Data limit','for' => 'limit']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-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(['value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Data limit'),'for' => 'limit']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $attributes = $__attributesOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $component = $__componentOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__componentOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
        <?php if (isset($component)) { $__componentOriginal520997795032a081472e524d174f39d0 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal520997795032a081472e524d174f39d0 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-field','data' => ['type' => 'text','name' => 'limit','id' => 'limit','value' => old('limit'),'placeholder' => 'Enter limit']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-field'); ?>
<?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' => 'limit','id' => 'limit','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(old('limit')),'placeholder' => 'Enter limit']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal520997795032a081472e524d174f39d0)): ?>
<?php $attributes = $__attributesOriginal520997795032a081472e524d174f39d0; ?>
<?php unset($__attributesOriginal520997795032a081472e524d174f39d0); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal520997795032a081472e524d174f39d0)): ?>
<?php $component = $__componentOriginal520997795032a081472e524d174f39d0; ?>
<?php unset($__componentOriginal520997795032a081472e524d174f39d0); ?>
<?php endif; ?>
            `;

            $(this).parents('.database-field').find('.add-database').html(element);
        } else {
            $(this).parents('.database-field').find('.add-database').empty();

        }
    });
    $(document).on('change', '#custom', function() {
        let status = $(this).parents('.database-field').find('#custom').is(':checked');
        $(this).parents('.database-field').find('#database').prop('checked', false);
        if (status) {
            let element =
                `
            <?php if (isset($component)) { $__componentOriginale997ded79ddaf38dceb79598bb7493fb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale997ded79ddaf38dceb79598bb7493fb = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-label','data' => ['value' => 'Component field','for' => 'component']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-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(['value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Component field'),'for' => 'component']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $attributes = $__attributesOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $component = $__componentOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__componentOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginaleaf4d3fa0aec9033615c0afdc9c537c1 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginaleaf4d3fa0aec9033615c0afdc9c537c1 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-select','data' => ['id' => 'component','values' => input(),'class' => 'sub-component','placeholder' => 'Select one','selected' => '']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-select'); ?>
<?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(['id' => 'component','values' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(input()),'class' => 'sub-component','placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Select one'),'selected' => '']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginaleaf4d3fa0aec9033615c0afdc9c537c1)): ?>
<?php $attributes = $__attributesOriginaleaf4d3fa0aec9033615c0afdc9c537c1; ?>
<?php unset($__attributesOriginaleaf4d3fa0aec9033615c0afdc9c537c1); ?>
<?php endif; ?>
<?php if (isset($__componentOriginaleaf4d3fa0aec9033615c0afdc9c537c1)): ?>
<?php $component = $__componentOriginaleaf4d3fa0aec9033615c0afdc9c537c1; ?>
<?php unset($__componentOriginaleaf4d3fa0aec9033615c0afdc9c537c1); ?>
<?php endif; ?>`;
            $(this).parents('.database-field').find('.add-database').html(element);
        } else {
            $(this).parents('.database-field').find('.add-database').empty();

        }
    });
    $(document).on('change', '.sub-component', function() {
        let value = $(this).find('option:selected').val();
        let text = $(this).find('option:selected').text();
        $(this).find('option:first').prop('selected', true);
        let element = `
            <div class='list'>
                    <?php if (isset($component)) { $__componentOriginale997ded79ddaf38dceb79598bb7493fb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale997ded79ddaf38dceb79598bb7493fb = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-label','data' => ['value' => '${text}','for' => '${value}']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-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(['value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('${text}'),'for' => '${value}']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $attributes = $__attributesOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $component = $__componentOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__componentOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal520997795032a081472e524d174f39d0 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal520997795032a081472e524d174f39d0 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-field','data' => ['type' => 'text','name' => 'sub_field_name[]','class' => '!w-[90%] inline-block','placeholder' => 'Enter ${value} field name','required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-field'); ?>
<?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' => 'sub_field_name[]','class' => '!w-[90%] inline-block','placeholder' => 'Enter ${value} field name','required' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal520997795032a081472e524d174f39d0)): ?>
<?php $attributes = $__attributesOriginal520997795032a081472e524d174f39d0; ?>
<?php unset($__attributesOriginal520997795032a081472e524d174f39d0); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal520997795032a081472e524d174f39d0)): ?>
<?php $component = $__componentOriginal520997795032a081472e524d174f39d0; ?>
<?php unset($__componentOriginal520997795032a081472e524d174f39d0); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal520997795032a081472e524d174f39d0 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal520997795032a081472e524d174f39d0 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-field','data' => ['type' => 'hidden','name' => 'sub_field_type[]','value' => '${value}']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-field'); ?>
<?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' => 'sub_field_type[]','value' => '${value}']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal520997795032a081472e524d174f39d0)): ?>
<?php $attributes = $__attributesOriginal520997795032a081472e524d174f39d0; ?>
<?php unset($__attributesOriginal520997795032a081472e524d174f39d0); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal520997795032a081472e524d174f39d0)): ?>
<?php $component = $__componentOriginal520997795032a081472e524d174f39d0; ?>
<?php unset($__componentOriginal520997795032a081472e524d174f39d0); ?>
<?php endif; ?>
                    <span class=" float-end">
                        <button class=" remove text-red-600  text-2xl mt-2"><i class="fa-solid fa-circle-xmark"></i></button>
                    </span>

                </div>
                `;
        $(this).parents('.database-field').find('.add-database').append(element);

    });
    $(document).on('change', '.field', function() {
        let value = $(this).find('option:selected').val();
        let text = $(this).find('option:selected').text();

        $(this).find('option:first').prop('selected', true);
        let element = `
            <div class='list'>
                    <?php if (isset($component)) { $__componentOriginale997ded79ddaf38dceb79598bb7493fb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale997ded79ddaf38dceb79598bb7493fb = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-label','data' => ['value' => '${text}','for' => '${value}']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-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(['value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('${text}'),'for' => '${value}']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $attributes = $__attributesOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__attributesOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale997ded79ddaf38dceb79598bb7493fb)): ?>
<?php $component = $__componentOriginale997ded79ddaf38dceb79598bb7493fb; ?>
<?php unset($__componentOriginale997ded79ddaf38dceb79598bb7493fb); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal520997795032a081472e524d174f39d0 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal520997795032a081472e524d174f39d0 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-field','data' => ['type' => 'text','name' => 'field_name[]','class' => '!w-[90%] inline-block','placeholder' => 'Enter ${value} field name','required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-field'); ?>
<?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' => 'field_name[]','class' => '!w-[90%] inline-block','placeholder' => 'Enter ${value} field name','required' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal520997795032a081472e524d174f39d0)): ?>
<?php $attributes = $__attributesOriginal520997795032a081472e524d174f39d0; ?>
<?php unset($__attributesOriginal520997795032a081472e524d174f39d0); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal520997795032a081472e524d174f39d0)): ?>
<?php $component = $__componentOriginal520997795032a081472e524d174f39d0; ?>
<?php unset($__componentOriginal520997795032a081472e524d174f39d0); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal520997795032a081472e524d174f39d0 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal520997795032a081472e524d174f39d0 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.input-field','data' => ['type' => 'hidden','name' => 'field_type[]','value' => '${value}']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.input-field'); ?>
<?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' => 'field_type[]','value' => '${value}']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal520997795032a081472e524d174f39d0)): ?>
<?php $attributes = $__attributesOriginal520997795032a081472e524d174f39d0; ?>
<?php unset($__attributesOriginal520997795032a081472e524d174f39d0); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal520997795032a081472e524d174f39d0)): ?>
<?php $component = $__componentOriginal520997795032a081472e524d174f39d0; ?>
<?php unset($__componentOriginal520997795032a081472e524d174f39d0); ?>
<?php endif; ?>
                    <span class=" float-end">
                        <button class=" remove text-red-600  text-2xl mt-2"><i class="fa-solid fa-circle-xmark"></i></button>
                    </span>

                </div>
                `;


        $(this).parents('.component-field').find('.field-list').append(element);

    })

    $(document).on('click', '.remove', function() {
        $(this).parents('.list').remove();
    })
    document.addEventListener("DOMContentLoaded", function() {
        document.getElementById("component-create").addEventListener("submit", function(event) {
            // Check if the form is valid
            if (this.checkValidity() === false) {
                // Prevent form submission if validation fails
                event.preventDefault();
                event.stopPropagation();
            } else {

            }
        });
    });
</script>
<?php /**PATH /home/khawajashipping/mrglogisticsbd.com/resources/views/backend/pages/component/model/create-model.blade.php ENDPATH**/ ?>