<?php $__env->startSection('title', 'List'); ?>

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


<style>
        .wrap
        {
            white-space: pre-wrap;      /* CSS3 */   
            white-space: -moz-pre-wrap; /* Firefox */    
            white-space: -pre-wrap;     /* Opera <7 */   
            white-space: -o-pre-wrap;   /* Opera 7 */    
            word-wrap: break-word;      /* IE */
        }
    </style>
<section class="content">
  <div class="row">       
    <div class="col-12">
      <div class="box">
                 
        <div class="box-body"><!--bg-lightest-->
              <h4 class="box-title text-info mb-0"><i class="fa fa-user fa-sx"></i> Configure List</h4>
              <a href="<?php echo e(url('/list')); ?>" type="submit" style="float:right" class="waves-effect waves-light btn btn-rounded btn-primary btn-bitbucket btn-sm mb-5"><i class="fa fa-eye"></i>Show List</a>
         <hr class="my-15">    
           
      <form id="formSubmit"class="form-inline" method="post" action="">
          <?php echo csrf_field(); ?>
          <input type="hidden" name="list_id" value="<?php echo e($lists->list_id); ?>" />
          <input type="hidden" name="campaign_id" value="<?php echo e($lists->campaign_id); ?>" />


          


          
            <div class="row">
              <div class="col-md-3">
                <div class="form-group <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> has-error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                  <label class="form-label">Title</label> 
                  <div class="input-group mb-3">
                    <span class="input-group-text <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> text-danger border-danger <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"><i class="ti-user"></i></span>
                    <input type="" class="form-control"  value="<?php echo e($lists->list); ?>" id="name"  name="title" >
                </div>
                </div>
              </div>

           
              <div class="col-md-3">
                <div class="form-group <?php $__errorArgs = ['list_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> has-error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                  <label class="form-label">Campaign</label>
                  <div class="input-group mb-3">
                    <select class="form-select select2"  name="new_campaign_id" autocomplete="off" data-placeholder="Select Campaign">
                            <?php $__currentLoopData = $campaign_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $campaign): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php if($campaign->status == 1): ?>
                                <option <?php if($lists->campaign_id == $campaign->id): ?> selected <?php endif; ?> value="<?php echo e($campaign->id); ?>"><?php echo e($campaign->title); ?></option>
                            <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>;
                            </select>
                  </div>
                </div>
              </div>
              <div class="col-md-3">
                <div class="form-group <?php $__errorArgs = ['list_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> has-error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                  <label class="form-label"></label>
                  <div class="input-group mb-3">
                    <button type="submit" name="submit" value="edit" class="btn btn-primary btn-sm"style="margin-top:10px;">
                  <i class="ti-save-alt"></i> Save
                </button>
                  </div>
                </div>
              </div> 
    
      </div>
      <!-- /.row -->
     <!-- /.box-body -->
   
            <!-- /.box -->      
        </div>  

  

      <div class="row">    
        <div class="col-12">
          <div class="box">
           <div class="box-body">           
              <div class="table-responsive">
                <table  class="table mt-0 table-hover no-wrap">
                  <thead>
                    <tr>
                              <th>#</th>
                              <th>File Header</th>
                              <th>Search Filter</th>
                              <th>Dialing Column</th>
                              <th>Visible</th>
                              <th>Editable</th>                             
                              <th>Label</th>

                            </tr>
                  </thead>
                  <tbody>
                                    <?php
                                    $i=0;
                                    ?>
                                    <?php $__currentLoopData = $lists->list_header; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                  <th scope="row"><?php echo e($i); ?></th>
                                    <td>
                                      <input type="hidden" name="id[]" value="<?php echo $value->id; ?>"/><?php echo $value->header; ?>
                                                    <input type="hidden" name="column_name[<?php echo e($i); ?>]" value="<?php echo $value->column_name; ?>"/>
                                    </td>
                                  <td>

                                    
                                    <input type="checkbox"class="filled-in" id="basic_checkbox1_<?php echo e($i); ?>"name="is_search[<?php echo e($i); ?>]" value="1" <?php if($value->is_search == '1'): ?> checked  <?php endif; ?> />
						                        <label for="basic_checkbox1_<?php echo e($i); ?>"></label>
                                    
                                 </td>
                                                            
                                     <td>  <input style="opacity: unset;position: unset;width: 18px;height: 18px;" type="radio" id="radio_<?php echo e($i); ?>" required  title="Please select an option" <?php if($value->is_dialing == '1'): ?>  checked  <?php endif; ?> name="is_dialing"  value="<?php echo e($value->id); ?>"/>
                                    <!-- <label for="radio_<?php echo e($i); ?>"></label> -->
                                    </td>
                                    <td><input class="filled-in"type="checkbox" id="basic_checkbox2_<?php echo e($i); ?>" name="is_visible[<?php echo e($i); ?>]"value="1"  <?php if($value->is_visible == '1'): ?>  checked  <?php endif; ?>  />
                                    <label for="basic_checkbox2_<?php echo e($i); ?>"></label></td>                                 
                                    <td><input  class="filled-in"type="checkbox" id="basic_checkbox3_<?php echo e($i); ?>" name="is_editable[<?php echo e($i); ?>]" value="1" <?php if($value->is_editable == '1'): ?>  checked  <?php endif; ?>  />
                                    <label for="basic_checkbox3_<?php echo e($i); ?>"></label>
                                   </td>
                                   <!-- <?php var_dump($value->is_editable); ?> -->
                                    <td>               <select name="label_id[]"
                                                            class="form-select" >
                                                        <option value="">Select Label</option>

                                                        <?php foreach ($label as $listKey => $listValue) { ?>
                                                            <option <?php if($value->label_id == $listValue->id): ?> selected <?php endif; ?>  value="<?php echo $listValue->id; ?>"><?php echo $listValue->title; ?></option>
                                                        <?php } ?>

                                                    </select></td>
                                
                                  
                             
                                </tr>
                                <?php
                                    $i++;
                                ?>
  
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                         
                  </tbody>
                </table>
              </div>
            </div>
          </div>
        </div>
 
</div>
      </div>
      <!-- /.row -->
      </form>
    </section>
        <!-- /.content -->

        <script src="https://code.jquery.com/jquery-3.7.0.js" integrity="sha256-JlqSTELeR4TLqP0OG9dxM7yDPqX1ox/HfgiSLBj8+kM=" crossorigin="anonymous"></script>

 

       

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

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/leadmine/leadmine_pro/resources/views/lists/configuration-list.blade.php ENDPATH**/ ?>