<?php if (isset($component)) { $__componentOriginalb9149c5834933a7cc028dc0044fe1532 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb9149c5834933a7cc028dc0044fe1532 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.model','data' => ['id' => 'slide-edit-model','class' => 'lg:max-w-2xl','button' => 'Submit','formId' => 'slide-edit','action' => route('slider.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('slide-edit-model'),'class' => 'lg:max-w-2xl','button' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Submit'),'form_id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('slide-edit'),'action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('slider.store')),'method' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('post'))]); ?>
    <?php echo csrf_field(); ?>
    <?php echo method_field('put'); ?>
    <div class="p-4 sm:p-10 overflow-y-auto  space-y-2">
        <?php if (isset($component)) { $__componentOriginal9b5ddf94799b1b1210c9b0aeedd45f7f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9b5ddf94799b1b1210c9b0aeedd45f7f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.editor','data' => ['name' => 'content','height' => __('200px'),'full' => false,'id' => 'edit','formId' => 'slide-edit','validate' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.editor'); ?>
<?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(['name' => 'content','height' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('200px')),'full' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(false),'id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('edit'),'form_id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('slide-edit'),'validate' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9b5ddf94799b1b1210c9b0aeedd45f7f)): ?>
<?php $attributes = $__attributesOriginal9b5ddf94799b1b1210c9b0aeedd45f7f; ?>
<?php unset($__attributesOriginal9b5ddf94799b1b1210c9b0aeedd45f7f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9b5ddf94799b1b1210c9b0aeedd45f7f)): ?>
<?php $component = $__componentOriginal9b5ddf94799b1b1210c9b0aeedd45f7f; ?>
<?php unset($__componentOriginal9b5ddf94799b1b1210c9b0aeedd45f7f); ?>
<?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' => __('Button Name'),'for' => 'button_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(__('Button Name')),'for' => 'button_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' => 'btn_name','id' => 'button_name','value' => old('button_name'),'placeholder' => 'Enter button name']] + (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' => 'btn_name','id' => 'button_name','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(old('button_name')),'placeholder' => 'Enter button name']); ?>
<?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' => __('Button URL'),'for' => 'button_url']] + (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(__('Button URL')),'for' => 'button_url']); ?>
<?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' => 'btn_url','id' => 'button_url','placeholder' => 'Enter button url','value' => old('button_url')]] + (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' => 'btn_url','id' => 'button_url','placeholder' => 'Enter button url','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(old('button_url'))]); ?>
<?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' => __('Upload Image'),'for' => 'upload_image']] + (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(__('Upload Image')),'for' => 'upload_image']); ?>
<?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' => 'file','name' => 'image','id' => 'upload_image','class' => 'block w-full text-sm text-gray-500 -ml-2
    file:me-4 file:py-2 file:px-4
    file:rounded-lg file:border-0
    file:text-sm file:font-semibold
    file:bg-blue-600 file:text-white
    hover:file:bg-blue-700
    file:disabled:opacity-50 file:disabled:pointer-events-none
    dark:file:bg-blue-500
    dark:hover:file:bg-blue-400
  ']] + (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' => 'file','name' => 'image','id' => 'upload_image','class' => 'block w-full text-sm text-gray-500 -ml-2
    file:me-4 file:py-2 file:px-4
    file:rounded-lg file:border-0
    file:text-sm file:font-semibold
    file:bg-blue-600 file:text-white
    hover:file:bg-blue-700
    file:disabled:opacity-50 file:disabled:pointer-events-none
    dark:file:bg-blue-500
    dark:hover:file:bg-blue-400
  ']); ?>
<?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>
 <?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('click', '#update', function() {
        let data = $(this).attr('data');

        data = JSON.parse(data);

        $('#slide-edit').find('#button_name').val(data.btn_name);
        $('#slide-edit').find('#button_url').val(data.btn_url);
        // Get the Froala Editor instance
        var editor = new FroalaEditor('#edit');
        // Set the content of the editor
        editor.html.set(data.content);
        let route = "<?php echo e(route('slider.update', ':id')); ?>".replace(':id', data.id);
        $('#slide-edit').attr('action', route)
    })
</script>
<?php /**PATH /home/khawajashipping/mrglogisticsbd.com/resources/views/backend/pages/sliders/model/slide-edit-model.blade.php ENDPATH**/ ?>