<div class="row">


   <div class="col-sm-12">
       <label class="label-color"> Payment Mode: <i style = "color:red;">*</i></label>
    <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('payment mode',":message")); ?></small>

    <div class="input-group mb-3">
      <div class="input-group-prepend">
        <span class="input-group-text" id="inputGroup-sizing-default">
          Mode
        </span>
      </div>
      <select  name="payment_mode[]" id="payment_mode_<?php echo e($unique_id); ?>" class="form-control form-control-sm cls_selection paymentmode_list"   onChange ="checkPaymentMode(this,'bank_section_<?php echo e($unique_id); ?>');">


          <?php if(isset($payment->id)): ?>
             <option value="<?php echo e($mode); ?>"><?php echo e($mode); ?></option>
          <?php else: ?>
              <!-- <option value="">Payment Mode</option> -->

              <?php $__currentLoopData = EF::getPaymentMode(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option <?php if(isset($mode) && $mode == $rows): ?> selected <?php endif; ?> value="<?php echo e($rows); ?>"><?php echo e($rows); ?></option>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          <?php endif; ?>
         

       
      
     
      </select>
    </div>
  </div>
   <div class="col-sm-12" style="text-align: right; display: none;">

      <strong >
        <?php if(isset($payment->id)): ?>
          <input readonly="" <?php if(isset($post_dated) && $post_dated > 1 ): ?> checked  <?php endif; ?> type="checkbox" name="postdated[]" value="<?php if(isset($post_dated)): ?><?php echo e($post_dated); ?><?php endif; ?>" id="postdated_<?php echo e($unique_id); ?>"> 
                   Is Post Dated? 
        <?php else: ?>

         <input <?php if(isset($post_dated) && $post_dated > 1 ): ?> checked  <?php endif; ?> type="checkbox" name="postdated[]" value="<?php if(isset($post_dated)): ?><?php echo e($post_dated); ?><?php endif; ?>" id="postdated_<?php echo e($unique_id); ?>"> 
         Is Post Dated? 
         <?php endif; ?>
      </strong>
  </div>
 </div>


<div class = "row bank_section_<?php echo e($unique_id); ?>" <?php if(isset($mode) && $mode == "Cash"): ?> style ="display:none;" <?php elseif(!isset($mode)): ?> style ="display:none;" <?php endif; ?> >
  <div class="col-sm-12 col-md-4">
    <label class="label-color"> Instrument:</label>
    <small class="form-errors pull-right req" value=""><?php echo e($errors->first('insturment',":message")); ?></small>
    <div class="input-group mb-3">
      <?php if(isset($payment->id)): ?>
        <input readonly=""  type="text" name="instrument[]" id="instrument_<?php echo e($unique_id); ?>" class="form-control form-control-sm cls_required" value="<?php if(isset($instrument)): ?><?php echo e($instrument); ?><?php endif; ?>"  placeholder="Instrument" aria-label="Default" aria-describedby = "inputGroup-sizing-default"> 
      <?php else: ?>
        <input  type="text" name="instrument[]" id="instrument_<?php echo e($unique_id); ?>" class="form-control form-control-sm cls_required" value="<?php if(isset($instrument)): ?><?php echo e($instrument); ?><?php endif; ?>"  placeholder="Instrument" aria-label="Default" aria-describedby = "inputGroup-sizing-default"> 
      <?php endif; ?>
      

     
    </div>
  </div>

    <div class="col-sm-12 col-md-4">
      <label class="label-color"> Drawn On:</label>
    <small class="form-errors pull-right req" value=""><?php echo e($errors->first('drawn',":message")); ?></small>
    <div class="input-group mb-3">
   
      <?php if(isset($payment->id)): ?>
        <input readonly=""  value="<?php if(isset($drawn_on)): ?><?php echo e($drawn_on); ?> <?php endif; ?>" type="text" name="drawn[]" id="drawn_<?php echo e($unique_id); ?>" class="form-control form-control-sm cls_required"  placeholder="Drawn On" aria-label="Default" aria-describedby = "inputGroup-sizing-default"> 
      <?php else: ?>
        <input  value="<?php if(isset($drawn_on)): ?><?php echo e($drawn_on); ?> <?php endif; ?>" type="text" name="drawn[]" id="drawn_<?php echo e($unique_id); ?>" class="form-control form-control-sm cls_required"  placeholder="Drawn On" aria-label="Default" aria-describedby = "inputGroup-sizing-default"> 
      <?php endif; ?>
      


    </div>
    
  </div>



  <div class="col-sm-12 col-md-4">
    <label class="label-color"> Instrument Date:</label>
    <small class="form-errors pull-right req" value=""><?php echo e($errors->first('date',":message")); ?></small>
    <div class="input-group mb-3">
        <?php if(isset($payment->id)): ?>
            <input readonly=""  <?php if(isset($instrument_date)): ?> value="<?php echo e(str_replace('1970-01-01',' ',date('Y-m-d',strtotime($instrument_date)))); ?>"  <?php endif; ?> type="date" name="instrument_date[]" id="instrument_date_<?php echo e($unique_id); ?>" class="form-control form-control-sm cls_required"  placeholder="Instrument Date" aria-label="Default" aria-describedby = "inputGroup-sizing-default"> 
        <?php else: ?>
            <input  <?php if(isset($instrument_date)): ?> value="<?php echo e(str_replace('1970-01-01',' ',date('Y-m-d',strtotime($instrument_date)))); ?>"  <?php endif; ?> type="date" name="instrument_date[]" id="instrument_date_<?php echo e($unique_id); ?>" class="form-control form-control-sm cls_required"  placeholder="Instrument Date" aria-label="Default" aria-describedby = "inputGroup-sizing-default"> 
        <?php endif; ?>
       

      


    </div>
    
  </div>

  <div class="col-sm-12 col-md-6">
    <label class="label-color"> Deposit No:</label>
    <small class="form-errors pull-right req" value=""><?php echo e($errors->first('deposit_no',":message")); ?></small>
    <div class="input-group mb-3">
     
        <input  <?php if(isset($deposit_no)): ?> value="<?php echo e($deposit_no); ?>"  <?php endif; ?> type="text" name="deposit_no[]" id="deposit_no_<?php echo e($unique_id); ?>" class="form-control form-control-sm cls_required"  placeholder="Deposit No" aria-label="Default" aria-describedby = "inputGroup-sizing-default"> 

      


    </div>
    
  </div>

  <div class="col-sm-12 col-md-6">
    <label class="label-color"> Deposit Date:</label>
    <small class="form-errors pull-right req" value=""><?php echo e($errors->first('deposit_date',":message")); ?></small>
    <div class="input-group mb-3">
     
        <input  <?php if(isset($deposit_date)): ?> value="<?php echo e(str_replace('1970-01-01',' ',date('Y-m-d',strtotime($deposit_date)))); ?>"  <?php endif; ?> type="date" name="deposit_date[]" id="deposit_date_<?php echo e($unique_id); ?>" class="form-control form-control-sm cls_required"  placeholder="Deposit Date" aria-label="Default" aria-describedby = "inputGroup-sizing-default"> 

      


    </div>
    
  </div>
</div>

<?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/components/voucher/payment_section.blade.php ENDPATH**/ ?>