select.blade.php 648 B

1234567891011121314
  1. <div class="input-group input-group-sm">
  2. <div class="input-group-prepend">
  3. <span class="input-group-text bg-white text-capitalize"><b>{!! $label !!}</b></span>
  4. </div>
  5. <select class="form-control {{ $class }}" name="{{$name}}" data-value="{{ request($name, $value) }}" style="width: 100%;">
  6. @if($selectAll)
  7. <option value="">{{trans('admin.all')}}</option>
  8. @endif
  9. @foreach($options as $select => $option)
  10. <option value="{{$select}}" {{ Dcat\Admin\Support\Helper::equal($select, request($name, $value)) ?'selected':'' }}>{{$option}}</option>
  11. @endforeach
  12. </select>
  13. </div>