09e0a3c36fc741db2025a71c1f330188506d3602.php 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php ($listErrorKey = "$column.values"); ?>
  2. <div class="<?php echo e($viewClass['form-group'], false); ?> <?php echo e($errors->has($listErrorKey) ? 'has-error' : '', false); ?>">
  3. <label class="<?php echo e($viewClass['label'], false); ?> control-label"><?php echo e($label, false); ?></label>
  4. <div class="<?php echo e($viewClass['field'], false); ?>">
  5. <?php if($errors->has($listErrorKey)): ?>
  6. <?php $__currentLoopData = $errors->get($listErrorKey); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $message): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  7. <label class="control-label" for="inputError"><i class="fa fa-times-circle-o"></i> <?php echo e($message, false); ?></label><br/>
  8. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  9. <?php endif; ?>
  10. <table class="table table-hover">
  11. <tbody class="list-<?php echo e($column, false); ?>-table">
  12. <?php $__currentLoopData = old("{$column}.values", ($value ?: [])); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k => $v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  13. <?php ($itemErrorKey = "{$column}.values.{$loop->index}"); ?>
  14. <tr>
  15. <td>
  16. <div class="form-group <?php echo e($errors->has($itemErrorKey) ? 'has-error' : '', false); ?>">
  17. <div class="col-sm-12">
  18. <input name="<?php echo e($column, false); ?>[values][]" value="<?php echo e(old("{$column}.values.{$k}", $v), false); ?>" class="form-control" />
  19. <?php if($errors->has($itemErrorKey)): ?>
  20. <?php $__currentLoopData = $errors->get($itemErrorKey); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $message): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  21. <label class="control-label" for="inputError"><i class="fa fa-times-circle-o"></i> <?php echo e($message, false); ?></label><br/>
  22. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  23. <?php endif; ?>
  24. </div>
  25. </div>
  26. </td>
  27. <td style="width: 75px;">
  28. <div class="<?php echo e($column, false); ?>-remove btn btn-warning btn-sm pull-right">
  29. <i class="fa fa-trash">&nbsp;</i><?php echo e(__('admin.remove'), false); ?>
  30. </div>
  31. </td>
  32. </tr>
  33. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  34. </tbody>
  35. <tfoot>
  36. <tr>
  37. <td></td>
  38. <td>
  39. <div class="<?php echo e($column, false); ?>-add btn btn-success btn-sm pull-right">
  40. <i class="fa fa-save"></i>&nbsp;<?php echo e(__('admin.new'), false); ?>
  41. </div>
  42. </td>
  43. </tr>
  44. </tfoot>
  45. </table>
  46. </div>
  47. <template class="<?php echo e($column, false); ?>-tpl">
  48. <tr>
  49. <td>
  50. <div class="form-group">
  51. <div class="col-sm-12">
  52. <input name="<?php echo e($column, false); ?>[values][]" class="form-control" />
  53. </div>
  54. </div>
  55. </td>
  56. <td style="width: 75px;">
  57. <div class="<?php echo e($column, false); ?>-remove btn btn-warning btn-sm pull-right">
  58. <i class="fa fa-trash">&nbsp;</i><?php echo e(__('admin.remove'), false); ?>
  59. </div>
  60. </td>
  61. </tr>
  62. </template>
  63. </div>
  64. <?php /**PATH C:\phpstudy_pro\WWW\cydsyy-api\vendor\encore\laravel-admin\src/../resources/views/form/listfield.blade.php ENDPATH**/ ?>