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

      <div class="input-group mb-3">
        
        <select content="<?php echo e($convention); ?>_subhead_<?php echo e($unique_id); ?>" name="<?php echo e($convention); ?>_subhead[]" id="<?php echo e($convention); ?>_subhead_<?php echo e($unique_id); ?>" class="<?php echo e($convention); ?>_subhead_<?php echo e($unique_id); ?> form-control form-control-sm cls_selection fstdropdown-select <?php echo e($convention); ?>_subhead_list">
          <option value="<?php echo e(Crypt::encrypt(0)); ?>">Select SubHead</option>


          <?php if(isset($subhead_list) && isset($filter_subhead_list)): ?>

            <!-- VOUCHER FILTRATION -->
            <?php if(isset($voucher_type)): ?>

                <!-- RECEIPT VOUCHER -->
                <?php if(in_array($voucher_type,['CRV','BRV']) && $convention === "debit"): ?>
                  <!-- SKIP FOR DEBIT CAHS AND BANK ACCOUNT ACCORDING TO VOUCHER TYPE -->
                  <?php $__currentLoopData = $filter_subhead_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option <?php if(isset($account->id)): ?> <?php if($account->id == $rows->id): ?> selected <?php endif; ?>   <?php endif; ?>  value="<?php echo e(Crypt::encrypt($rows->id)); ?>"><?php echo e($rows->head->code); ?> <?php echo e($rows->head->name); ?> | <?php echo e($rows->code); ?> <?php echo e($rows->name); ?></option>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
           
                <!-- PAYMENT VOUCHER -->
                <?php elseif(in_array($voucher_type,['CPV','BPV']) && $convention === "credit"): ?>
                  <!-- SKIP FOR CREDIT CAHS AND BANK ACCOUNT ACCORDING TO VOUCHER TYPE -->
                  <?php $__currentLoopData = $filter_subhead_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option <?php if(isset($account->id)): ?> <?php if($account->id == $rows->id): ?> selected <?php endif; ?>   <?php endif; ?>  value="<?php echo e(Crypt::encrypt($rows->id)); ?>"><?php echo e($rows->head->code); ?> <?php echo e($rows->head->name); ?> | <?php echo e($rows->code); ?> <?php echo e($rows->name); ?></option>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                <?php else: ?>
                  <!-- SHOW ALL ACCOUNT ACCORDING TO VOUCHER TYPE -->
                  <?php $__currentLoopData = $subhead_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option <?php if(isset($account->id)): ?> <?php if($account->id == $rows->id): ?> selected <?php endif; ?>   <?php endif; ?>  value="<?php echo e(Crypt::encrypt($rows->id)); ?>"><?php echo e($rows->head->code); ?> <?php echo e($rows->head->name); ?> | <?php echo e($rows->code); ?> <?php echo e($rows->name); ?></option>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                <?php endif; ?>
            <?php else: ?>
                  <!-- SHOW ALL ACCOUNT ACCORDING TO VOUCHER TYPE -->
                  <?php $__currentLoopData = $subhead_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option <?php if(isset($account->id)): ?> <?php if($account->id == $rows->id): ?> selected <?php endif; ?>   <?php endif; ?>  value="<?php echo e(Crypt::encrypt($rows->id)); ?>"><?php echo e($rows->head->code); ?> <?php echo e($rows->head->name); ?> | <?php echo e($rows->code); ?> <?php echo e($rows->name); ?></option>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php endif; ?>

          <?php endif; ?>

         
          

        </select>

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

<script type="text/javascript">
  setFstDropdown();
</script><?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/components/voucher/account_section.blade.php ENDPATH**/ ?>