<?php $__env->startSection('content'); ?>

    <!-- Form row -->
    <div class="row">
        <div class="col-xl-12 box-margin height-card">
            <div class="card card-body">
                <h4 class="card-title"><?php echo e(__('content.preloader')); ?></h4>
            <?php if(isset($preloader)): ?>
                <?php if($demo_mode == "on"): ?>
                    <!-- Include Alert Blade -->
                        <?php echo $__env->make('admin.demo_mode.demo-mode', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <?php else: ?>
                        <form action="<?php echo e(route('preloader.update', $preloader->id)); ?>" method="POST">
                            <?php echo method_field('PUT'); ?>
                            <?php echo csrf_field(); ?>
                            <?php endif; ?>

                            <div class="row">
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <label for="preloader_text"><?php echo e(__('content.preloader_text')); ?></label>
                                        <input type="text" name="preloader_text" class="form-control" id="preloader_text" value="<?php echo e($preloader->preloader_text); ?>">
                                    </div>
                                </div>
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <label for="subtitle"><?php echo e(__('content.subtitle')); ?></label>
                                        <input type="text" name="subtitle" class="form-control" id="subtitle" value="<?php echo e($preloader->subtitle); ?>">
                                    </div>
                                </div>
                                <div class="col-xl-12">
                                    <div class="form-group">
                                        <label for="status" class="col-form-label"><?php echo e(__('content.status')); ?> </label>
                                        <select class="form-control" name="status" id="status">
                                            <option value="enable" selected><?php echo e(__('content.select_your_option')); ?></option>
                                            <option value="enable" <?php echo e($preloader->status == 'enable' ? 'selected' : ''); ?>><?php echo e(__('content.enable')); ?></option>
                                            <option value="disable" <?php echo e($preloader->status == 'disable' ? 'selected' : ''); ?>><?php echo e(__('content.disable')); ?></option>
                                        </select>
                                    </div>
                                </div>
                                <div class="col-md-12">
                                    <button type="submit" class="btn btn-primary mr-2"><?php echo e(__('content.submit')); ?></button>
                                    <a href="#" class="btn btn-primary" data-toggle="modal" data-target="#preloaderDestroyModal<?php echo e($preloader->id); ?>">
                                        <i class="fa fa-trash"></i> <?php echo e(__('content.reset')); ?>

                                    </a>
                                </div>
                            </div>
                        </form>

                        <!-- Modal -->
                        <div class="modal fade" id="preloaderDestroyModal<?php echo e($preloader->id); ?>" tabindex="-1" role="dialog" aria-labelledby="preloaderDestroyModalCenterTitle" aria-hidden="true">
                            <div class="modal-dialog modal-dialog-centered modal-sm" role="document">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <h5 class="modal-title" id="preloaderDestroyModalCenterTitle"><?php echo e(__('content.delete')); ?></h5>
                                        <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo e(__('content.close')); ?>">
                                            <span aria-hidden="true">&times;</span>
                                        </button>
                                    </div>
                                    <div class="modal-body text-center">
                                        <?php echo e(__('content.you_wont_be_able_to_revert_this')); ?>

                                    </div>
                                    <div class="modal-footer">
                                        <?php if($demo_mode == "on"): ?>
                                            <!-- Include Alert Blade -->
                                            <?php echo $__env->make('admin.demo_mode.demo-mode', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                        <?php else: ?>
                                            <form class="d-inline-block" action="<?php echo e(route('preloader.destroy', $preloader->id)); ?>" method="POST">
                                                <?php echo method_field('DELETE'); ?>
                                                <?php echo csrf_field(); ?>
                                                <?php endif; ?>

                                            <button type="button" class="btn btn-danger mr-1" data-dismiss="modal"><?php echo e(__('content.cancel')); ?></button>
                                            <button type="submit" class="btn btn-success"><?php echo e(__('content.yes_delete_it')); ?></button>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>

                    <?php else: ?>
                            <?php if($demo_mode == "on"): ?>
                            <!-- Include Alert Blade -->
                                <?php echo $__env->make('admin.demo_mode.demo-mode', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            <?php else: ?>
                                <form action="<?php echo e(route('preloader.store')); ?>" method="POST">
                                    <?php echo csrf_field(); ?>
                                    <?php endif; ?>

                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label for="preloader_text"><?php echo e(__('content.preloader_text')); ?></label>
                                                <input type="text" name="preloader_text" class="form-control" id="preloader_text">
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label for="subtitle"><?php echo e(__('content.subtitle')); ?></label>
                                                <input type="text" name="subtitle" class="form-control" id="subtitle">
                                            </div>
                                        </div>
                                        <div class="col-xl-12">
                                            <div class="form-group">
                                                <label for="status" class="col-form-label"><?php echo e(__('content.status')); ?> </label>
                                                <select class="form-control" name="status" id="status">
                                                    <option value="enable" selected><?php echo e(__('content.select_your_option')); ?></option>
                                                    <option value="enable"><?php echo e(__('content.enable')); ?></option>
                                                    <option value="disable"><?php echo e(__('content.disable')); ?></option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <button type="submit" class="btn btn-primary mr-2"><?php echo e(__('content.submit')); ?></button>
                                        </div>
                                    </div>
                                </form>
                            <?php endif; ?>
            </div>
        </div>
    </div>
    <!-- end row -->

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/lltrusti/casinonexus.online/ajay/resources/views/admin/setting/preloader/create.blade.php ENDPATH**/ ?>