
<?php $__env->startSection('title'); ?>
<title><?php echo e(__('admin.Become author')); ?></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.Become author')); ?></h1>
          </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.become-author', ['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-become-author')); ?>" method="POST" enctype="multipart/form-data">
                                    <?php echo method_field('PUT'); ?>
                                    <?php echo csrf_field(); ?>
                                    <input type="hidden" name="lang_code" value="<?php echo e(request()->get('lang_code')); ?>">

                                    <?php if(session()->get('admin_lang') == request()->get('lang_code')): ?>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Existing Background')); ?></label>
                                        <div>
                                            <img class="w_200"  src="<?php echo e(custom_asset($become_author->bg_image)); ?>" alt="">
                                        </div>
                                    </div>

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

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Foreground Image')); ?></label>
                                        <div>
                                            <img class="w_220"  src="<?php echo e(custom_asset($become_author->image1)); ?>" alt="">
                                        </div>
                                    </div>

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

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Image')); ?></label>
                                        <div>
                                            <img class="w_220"  src="<?php echo e(custom_asset($become_author->image2)); ?>" alt="">
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.New image')); ?></label>
                                        <input type="file" name="image2" 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="title" class="form-control" value="<?php echo e($become_language->title); ?>">
                                    </div>

                                    <?php if(session()->get('admin_lang') == request()->get('lang_code')): ?>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Icon one')); ?></label>
                                        <div>
                                            <img class="icon_w100"  src="<?php echo e(custom_asset($become_author->icon1)); ?>" alt="">
                                        </div>
                                    </div>

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


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

                                    <?php if(session()->get('admin_lang') == request()->get('lang_code')): ?>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Icon two')); ?></label>
                                        <div>
                                            <img class="icon_w100"  src="<?php echo e(custom_asset($become_author->icon2)); ?>" alt="">
                                        </div>
                                    </div>

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

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

                                    <?php if(session()->get('admin_lang') == request()->get('lang_code')): ?>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Icon three')); ?></label>
                                        <div>
                                            <img class="icon_w100"  src="<?php echo e(custom_asset($become_author->icon3)); ?>" alt="">
                                        </div>
                                    </div>

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

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

                                    <?php if(session()->get('admin_lang') == request()->get('lang_code')): ?>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Icon four')); ?></label>
                                        <div>
                                            <img class="icon_w100"  src="<?php echo e(custom_asset($become_author->icon4)); ?>" alt="">
                                        </div>
                                    </div>

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

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

                                    <?php if(session()->get('admin_lang') == request()->get('lang_code')): ?>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Existing signature')); ?></label>
                                        <div>
                                            <img class="w_50"  src="<?php echo e(custom_asset($become_author->signature)); ?>" alt="">
                                        </div>
                                    </div>

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

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

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

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

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Desgination')); ?> <span class="text-danger">*</span></label>
                                        <input type="text" name="desgination" class="form-control" value="<?php echo e($become_language->desgination); ?>">
                                    </div>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Header one')); ?> <span class="text-danger">*</span></label>
                                        <input type="text" name="header1" class="form-control" value="<?php echo e($become_language->header1); ?>">
                                    </div>

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

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

                                    <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/become_author.blade.php ENDPATH**/ ?>