022fbe1a3f8274bc82df70ac6bf71448aa5ebd36.php 2.5 KB

1234567891011121314151617181920212223242526272829303132
  1. <div class="<?php echo e($viewClass['form-group'], false); ?> <?php echo !$errors->has($errorKey) ? '' : 'has-error'; ?>">
  2. <label for="<?php echo e($id, false); ?>" class="<?php echo e($viewClass['label'], false); ?> control-label"><?php echo e($label, false); ?></label>
  3. <div class="<?php echo e($viewClass['field'], false); ?>">
  4. <?php echo $__env->make('admin::form.error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  5. <input type="hidden" name="<?php echo e($name, false); ?>"/>
  6. <select class="form-control <?php echo e($class, false); ?>" style="width: 100%;" name="<?php echo e($name, false); ?>" <?php echo $attributes; ?> >
  7. <?php if($groups): ?>
  8. <?php $__currentLoopData = $groups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  9. <optgroup label="<?php echo e($group['label'], false); ?>">
  10. <?php $__currentLoopData = $group['options']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $select => $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  11. <option value="<?php echo e($select, false); ?>" <?php echo e($select == old($column, $value) ?'selected':'', false); ?>><?php echo e($option, false); ?></option>
  12. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  13. </optgroup>
  14. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  15. <?php else: ?>
  16. <option value=""></option>
  17. <?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $select => $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  18. <option value="<?php echo e($select, false); ?>" <?php echo e($select == old($column, $value) ?'selected':'', false); ?>><?php echo e($option, false); ?></option>
  19. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  20. <?php endif; ?>
  21. </select>
  22. <?php echo $__env->make('admin::form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  23. </div>
  24. </div>
  25. <?php /**PATH C:\phpstudy_pro\WWW\cydsyy-api\vendor\encore\laravel-admin\src/../resources/views/form/select.blade.php ENDPATH**/ ?>