

<?php $__env->startSection('content'); ?>
<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
<div class="row">
  <div class="col-12">
    <div class="card">
      <!-- Card header -->
      <div class="card-header pb-0">
        <div class="d-lg-flex">
          <div>
            <h5 class="mb-0">Language Text</h5>
            <div class="ms-auto my-auto mt-2">
                <label class="text-sm">Select Language : </label>
                <select class="form-control"  onchange="javascript:location.href = this.value;">
                    <?php $__currentLoopData = $lang; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="/language/data?lang=<?php echo e($item->code); ?>" <?php echo e((request()->get('lang') == $item->code ) ? 'selected' : ''); ?> ><?php echo e($item->title); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>   
            </div>
          </div>
          <div class="ms-auto my-auto mt-lg-0 mt-4">
          </div>
        </div>
      </div>
      <div class="card-body px-0 pb-0">
        <div class="table-responsive">
          <?php if($errors->get('msgError')): ?>
          <div class="m-3  alert alert-warning alert-dismissible fade show" role="alert">
            <span class="alert-text text-white">
              <?php echo e($errors->first()); ?></span>
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
              <i class="fa fa-close" aria-hidden="true"></i>
            </button>
          </div>
          <?php endif; ?>
          <?php if(session('success')): ?>
          <div class="m-3  alert alert-success alert-dismissible fade show" id="alert-success" role="alert">
            <span class="alert-text text-white">
              <?php echo e(session('success')); ?></span>
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
              <i class="fa fa-close" aria-hidden="true"></i>
            </button>
          </div>
          <?php endif; ?>
          
            <div class="col-lg-12 col-12 mx-auto p-5">
                  <form class="forms-sample" method="POST" action="/language/update-lang-txt" enctype="multipart/form-data">
                      <input type="hidden" value="<?php echo e(request()->get('lang')); ?>" name="selected_lang">
                        <?php echo csrf_field(); ?>
                    <div class="form-group row">
                        <?php if(count($data) > 0): ?>
                        <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col-sm-4 mt-2">
                            <label for="exampleInputPassword2" class="col-sm-12 col-form-label"><b><?php echo e($item->txt_key); ?></b></label>
                            <div class="col-sm-12">
                                <input type="hidden" class="form-control" name="lang_id[]" value="<?php echo e($item->id); ?>">
                                <input type="text" class="form-control" name="langval[]" value="<?php echo e($item->txt_value); ?>" placeholder=""
                                    required>
                            </div>
                        </div>

                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    </div>

                    <button type="submit" class="btn btn-primary mr-2">
                        <?php echo e(__('Update')); ?>

                    </button>
                    </form>
                
            </div>
            </div>
          
      </div>
    </div>
  </div>
</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->startPush('js'); ?>
<script src="<?php echo e(URL::asset('assets/js/plugins/datatables.js')); ?>"></script>
<script src="../../assets/js/plugins/sweetalert.min.js"></script>
<script src="../../assets/js/plugins/action.js"></script>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
  $(document).ready(function() {
    $("#alert-success").delay(3000).slideUp(300);
  });
  

</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('user_type.auth', ['parentFolder' => 'language', 'childFolder' => ''], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/in2apps/public_html/lebara.in2apps.xyz/resources/views/language/lang-data.blade.php ENDPATH**/ ?>