 <div class="col-sm-12">
 </div>

  <div class="col-sm-12 col-md-6">
         <label class="label-color"> <?php echo e(ucwords(str_replace('_',' ',EF::branchWhiteLabel()['module']))); ?>:<i style = "color:red;">*</i></label>

        <small class="form-errors pull-right req" value="*"><?php echo e($errors->first(EF::branchWhiteLabel()['module'],":message")); ?></small>

        <div class="input-group mb-3">
        
          <?php if(isset($current_branch)): ?>
            <select readonly="true" id="branch_<?php echo e($unique_id); ?>" class="form-control form-control-sm cls_selection" name="<?php echo e(EF::branchWhiteLabel()['module']); ?>">
              
                <?php $__currentLoopData = $branch; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($current_branch === $rows->id): ?>
                      <option value="<?php echo e(Crypt::encrypt($rows->id)); ?>"><?php echo e($rows->code); ?> <?php echo e($rows->name); ?></option>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
          <?php else: ?>
            <select id="branch_<?php echo e($unique_id); ?>" onchange="getBookingList(this,'<?php echo e($unique_id); ?>','<?php echo e(Crypt::encrypt(0)); ?>')" class="form-control form-control-sm branch_curr cls_selection" name="<?php echo e(EF::branchWhiteLabel()['module']); ?>">
              <option value="<?php echo e(Crypt::encrypt(0)); ?>">Select <?php echo e(ucwords(str_replace('_',' ',EF::branchWhiteLabel()['module']))); ?></option>
                <?php $__currentLoopData = $branch; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e(Crypt::encrypt($rows->id)); ?>"><?php echo e($rows->code); ?> <?php echo e($rows->name); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
          <?php endif; ?>  
          
  
        </div>
  </div>

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

    <div class="input-group mb-4">

      <select onchange="showSubheads(event,this);" name="voucher_list" class="form-control form-control-sm cls_selection voucher_list voucher_type_<?php echo e($unique_id); ?>" >
        
        <?php ($full_voucher = EF::getFullVoucherList()); ?>
        <?php $__currentLoopData = EF::getVoucherList(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <?php if(isset($transaction->id) && $transaction->status == "Approve"): ?>)
            <option value="<?php echo e($rows); ?>" ><?php echo e($full_voucher[$rows]); ?></option>
            <?php break; ?>
          <?php else: ?>
          <?php if(isset($type) && $type == $rows): ?>
            <option value="<?php echo e($rows); ?>" selected><?php echo e($full_voucher[$rows]); ?></option>
            <?php else: ?>
            <option value="<?php echo e($rows); ?>" ><?php echo e($full_voucher[$rows]); ?></option>
            <?php endif; ?>
          <?php endif; ?>
          

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

    </div>
  </div>

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

    <div class="input-group mb-3">
    
      <input type="date" name="date" class="form-control form-control-sm cls_date" <?php if(isset($date)): ?>  value="<?php echo e(date('Y-m-d',strtotime($date))); ?>" <?php else: ?> value="<?php echo e(EF::dateHtml(date('Y-m-d'))); ?>" <?php endif; ?>>

    </div>
  </div>

  <div class="col-sm-12 col-md-6">
    <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('type',":message")); ?></small>

      <label class="label-color"> Type <i style = "color:red;">*</i></label>

    <div class="input-group mb-3" id="voucher_type">

      <select name="compound_type" class="form-control form-control-sm cls_selection" onchange="compoundType(event,this,'<?php echo e($unique_id); ?>')">
        

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

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

      </select>

    </div>
  </div>









<?php /**PATH /var/www/skylite/resources/views/components/voucher/voucher_header.blade.php ENDPATH**/ ?>