
<?php $__env->startSection('title'); ?>
<title><?php echo e(__('admin.Intro section')); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('admin-content'); ?>
      <!-- Main Content -->
      <div class="main-content">
        <section class="section">
          <div class="section-header">
            <h1><?php echo e(__('admin.Intro section')); ?></h1>
            <div class="section-header-breadcrumb">
              <div class="breadcrumb-item active"><a href="<?php echo e(route('admin.dashboard')); ?>"><?php echo e(__('admin.Dashboard')); ?></a></div>
              <div class="breadcrumb-item"><?php echo e(__('admin.Intro section')); ?></div>
            </div>
          </div>

          <div class="section-body">
            <div class="row mt-4">
                <div class="col-12">
                    <div class="card">
                      <div class="card-body">
                        <h3 class="h3 mb-3 text-gray-800"><?php echo e(__('admin.Language')); ?></h3>
                        <hr>
                        <div class="lang_list_top">
                            <ul class="lang_list">
                                <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li><a href="<?php echo e(route('admin.slider.index', ['lang_code' => $language->lang_code])); ?>"><i class="fas fa-edit"></i> <?php echo e($language->lang_name); ?></a></li>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </ul>
                        </div>

                        <div class="alert alert-danger" role="alert">
                            <?php
                                $current_language = App\Models\Language::where('lang_code', request()->get('lang_code'))->first();
                            ?>
                            <p><?php echo e(__('admin.Your editing mode')); ?> : <b><?php echo e($current_language->lang_name); ?></b></p>
                        </div>
                      </div>
                    </div>
                </div>
                <div class="col-12">
                  <div class="card">
                    <div class="card-body">
                        <form action="<?php echo e(route('admin.slider.update', $slider->id)); ?>" method="POST" enctype="multipart/form-data">
                            <?php echo csrf_field(); ?>
                            <?php echo method_field('PUT'); ?>
                            <input type="hidden" name="lang_code" value="<?php echo e(request()->get('lang_code')); ?>">
                            <?php
                                $home1= false;
                                if($selected_theme == 0 || $selected_theme == 1){
                                    $home1 = true;
                                }
                            ?>

                            <div class="row <?php echo e($home1 == false ? 'd-none' : ''); ?>">
                                <div class="col-12">
                                    <h6 class="home_border"><?php echo e(__('admin.Home One')); ?></h6>
                                    <hr>
                                </div>
                                <?php if(session()->get('admin_lang') == request()->get('lang_code')): ?>
                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.Existing Background')); ?></label>
                                    <div>
                                        <img class="w_200" src="<?php echo e(custom_asset($slider->home1_bg)); ?>" alt="">
                                    </div>
                                </div>

                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.New Background')); ?></label>
                                    <input type="file" name="home1_bg" class="form-control-file">
                                </div>
                                <?php endif; ?>
                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.Title')); ?> <span class="text-danger">*</span></label>
                                    <input type="text" name="home1_title" value="<?php echo e($sliderlanguage->home1_title); ?>" class="form-control">
                                </div>
                            </div>

                            <?php
                                $home2= false;
                                if($selected_theme == 0 || $selected_theme == 2){
                                    $home2 = true;
                                }
                            ?>

                            <div class="row <?php echo e($home2 == false ? 'd-none' : ''); ?>">
                                <div class="col-12">
                                    <h6 class="home_border"><?php echo e(__('admin.Home Two')); ?></h6>
                                    <hr>
                                </div>
                                <?php if(session()->get('admin_lang') == request()->get('lang_code')): ?>
                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.Existing Background')); ?></label>
                                    <div>
                                        <img class="w_200" src="<?php echo e(custom_asset($slider->home2_bg)); ?>" alt="">
                                    </div>
                                </div>

                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.New Background')); ?></label>
                                    <input type="file" name="home2_bg" class="form-control-file">
                                </div>

                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.Existing Image')); ?></label>
                                    <div>
                                        <img class="home2_image" src="<?php echo e(custom_asset($slider->home2_image)); ?>" alt="">
                                    </div>
                                </div>

                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.New Image')); ?></label>
                                    <input type="file" name="home2_image" class="form-control-file">
                                </div>
                                <?php endif; ?>
                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.Title')); ?> <span class="text-danger">*</span></label>
                                    <input type="text" name="home2_title" value="<?php echo e($sliderlanguage->home2_title); ?>" class="form-control">
                                </div>

                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.Description')); ?> <span class="text-danger">*</span></label>
                                    <input type="text" name="home2_description" value="<?php echo e($sliderlanguage->home2_description); ?>" class="form-control">
                                </div>
                            </div>

                            <?php
                                $home3= false;
                                if($selected_theme == 0 || $selected_theme == 3){
                                    $home3 = true;
                                }
                            ?>

                            <div class="row <?php echo e($home3 == false ? 'd-none' : ''); ?>">
                                <div class="col-12">
                                    <h6 class="home_border"><?php echo e(__('admin.Home Three')); ?></h6>
                                    <hr>
                                </div>
                                <?php if(session()->get('admin_lang') == request()->get('lang_code')): ?>
                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.Existing Background')); ?></label>
                                    <div>
                                        <img class="w_200" src="<?php echo e(custom_asset($slider->home3_bg)); ?>" alt="">
                                    </div>
                                </div>

                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.New Background')); ?></label>
                                    <input type="file" name="home3_bg" class="form-control-file">
                                </div>

                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.Existing Image')); ?></label>
                                    <div>
                                        <img class="home2_image" src="<?php echo e(custom_asset($slider->home3_image)); ?>" alt="">
                                    </div>
                                </div>
                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.New Image')); ?></label>
                                    <input type="file" name="home3_image" class="form-control-file">
                                </div>
                                <?php endif; ?>


                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.Title')); ?> <span class="text-danger">*</span></label>
                                    <input type="text" name="home3_title" value="<?php echo e($sliderlanguage->home3_title); ?>" class="form-control">
                                </div>

                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.Description')); ?> <span class="text-danger">*</span></label>
                                    <input type="text" name="home3_description" value="<?php echo e($sliderlanguage->home3_description); ?>" class="form-control">
                                </div>

                                <div class="col-12">
                                    <hr>
                                </div>
                            </div>
                            <?php if(session()->get('admin_lang') == request()->get('lang_code')): ?>
                            <div class="row">
                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.Total sold')); ?> <span class="text-danger">*</span></label>
                                    <input type="text" name="total_sold" value="<?php echo e($slider->total_sold); ?>" class="form-control">
                                </div>

                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.Total Product')); ?> <span class="text-danger">*</span></label>
                                    <input type="text" name="total_product" value="<?php echo e($slider->total_product); ?>" class="form-control">
                                </div>

                                <div class="form-group col-12">
                                    <label><?php echo e(__('admin.Total User')); ?> <span class="text-danger">*</span></label>
                                    <input type="text" name="total_user" value="<?php echo e($slider->total_user); ?>" class="form-control">
                                </div>
                            </div>
                            <?php endif; ?>

                            <div class="row">
                                <div class="col-12">
                                    <button class="btn btn-primary"><?php echo e(__('admin.Update')); ?></button>
                                </div>
                            </div>
                        </form>
                    </div>
                  </div>
                </div>
          </div>
        </section>
      </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.master_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/u453274677/domains/gamekall.in/public_html/resources/views/admin/create_slider.blade.php ENDPATH**/ ?>