
<?php $__env->startSection('title'); ?>
<title><?php echo e(__('admin.Mobile App')); ?></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.Mobile App')); ?></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.Mobile App')); ?></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.mobile-app', ['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 mt-2" 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.update-mobile-app')); ?>" 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($setting->selected_theme == 0 || $setting->selected_theme == 1){
                                            $home1 = true;
                                        }

                                    ?>

                                    <?php if($home1): ?>

                                    <h6 class="home_border"><?php echo e(__('admin.Home One')); ?></h6>
                                        <hr>
                                    <?php if(session()->get('admin_lang') == request()->get('lang_code')): ?>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Foreground image')); ?></label>
                                        <div>
                                            <img class="app_image" src="<?php echo e(custom_asset($mobile_app->home1_foreground)); ?>" alt="">
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.New foreground')); ?></label>
                                        <input type="file" name="home1_foreground" class="form-control-file">
                                    </div>
                                    <?php endif; ?>

                                    <?php
                                        $notify = trans('For colorfull title, write the title inside "<span>colorfull title here</span>" tag');
                                    ?>

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

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Description')); ?> <span class="text-danger">*</span></label>
                                        <textarea name="description" class="form-control text-area-5" id="" cols="30" rows="10"><?php echo e($mobile_app->description); ?></textarea>
                                    </div>

                                    <?php endif; ?>

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

                                    <?php if($home2): ?>

                                    <h6 class="home_border"><?php echo e(__('admin.Home Two')); ?></h6>
                                    <hr>
                                    <?php if(session()->get('admin_lang') == request()->get('lang_code')): ?>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Background image')); ?></label>
                                        <div>
                                            <img class="w_300_h_150" src="<?php echo e(custom_asset($mobile_app->home2_background)); ?>" alt="">
                                        </div>
                                    </div>

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

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Foreground image')); ?></label>
                                        <div>
                                            <img class="app_image" src="<?php echo e(custom_asset($mobile_app->home2_foreground)); ?>" alt="">
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.New foreground')); ?></label>
                                        <input type="file" name="home2_foreground" class="form-control-file">
                                    </div>
                                    <?php endif; ?>

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

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Description')); ?> <span class="text-danger">*</span></label>
                                        <textarea name="home2_desc" class="form-control text-area-5" id="" cols="30" rows="10"><?php echo e($mobile_app->home2_desc); ?></textarea>
                                    </div>

                                    <?php endif; ?>

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

                                    <?php if($home3): ?>

                                        <h6 class="home_border"><?php echo e(__('admin.Home Three')); ?></h6>
                                        <hr>
                                        <?php if(session()->get('admin_lang') == request()->get('lang_code')): ?>
                                        <div class="form-group">
                                            <label for=""><?php echo e(__('admin.Background image')); ?></label>
                                            <div>
                                                <img class="app_image" src="<?php echo e(custom_asset($mobile_app->home3_background)); ?>" alt="">
                                            </div>
                                        </div>

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

                                        <div class="form-group">
                                            <label for=""><?php echo e(__('admin.Foreground image')); ?></label>
                                            <div>
                                                <img class="app_image" src="<?php echo e(custom_asset($mobile_app->home3_foreground)); ?>" alt="">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for=""><?php echo e(__('admin.New foreground')); ?></label>
                                            <input type="file" name="home3_foreground" class="form-control-file">
                                        </div>
                                        <?php endif; ?>

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

                                        <div class="form-group">
                                            <label for=""><?php echo e(__('admin.Description')); ?> <span class="text-danger">*</span></label>
                                            <textarea name="home3_desc" class="form-control text-area-5" id="" cols="30" rows="10"><?php echo e($mobile_app->home3_desc); ?></textarea>
                                        </div>

                                    <?php endif; ?>
                                    <?php if(session()->get('admin_lang') == request()->get('lang_code')): ?>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Google Play Store Link')); ?></label>
                                        <input type="text" name="play_store" class="form-control" value="<?php echo e($mobile_app->play_store); ?>">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.App Store Link')); ?></label>
                                        <input type="text" name="app_store" class="form-control" value="<?php echo e($mobile_app->app_store); ?>">
                                    </div>
                                    <?php endif; ?>

                                    <button type="submit" class="btn btn-primary"><?php echo e(__('admin.Update')); ?></button>
                                </form>
                            </div>
                        </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/mobile_app.blade.php ENDPATH**/ ?>