multi_select_option.blade.php 518 B

123456789101112
  1. @foreach($selects as $select)
  2. <option value="{{ $select['id'] }}"
  3. @if((isset($selectPid) && $selectPid == $select['id']) || (old('parent_id') == $select['id'])) selected @endif>
  4. @for($i = 1; $i < $select['tier']; $i++)
  5. &nbsp;&nbsp;&nbsp;&nbsp;
  6. @endfor
  7. {{ $select['title'] }}
  8. </option>
  9. @if(isset($select['child']) && count($select['child']) > 0)
  10. @include('admin::component.multi_select_option', ['selects' => $select['child']])
  11. @endif
  12. @endforeach