| xqd
@@ -52,9 +52,9 @@
|
|
|
<select id="data_parent_id" class="form-control" name="data[cat_id]" >
|
|
|
@if(isset($category))
|
|
|
@foreach($category as $key=>$val)
|
|
|
- <option value="0">{{$val['name']}}</option>
|
|
|
+ <option value="0">|--{{$val['name']}}</option>
|
|
|
@foreach($val['son'] as $index=>$item)
|
|
|
- <option value="{{$item->id}}" @if($item['id'] == (isset($data['cat_id'])? $data['cat_id']:''))selected @endif>{{$item->name}}</option>
|
|
|
+ <option value="{{$item->id}}" @if($item['id'] == (isset($data['cat_id'])? $data['cat_id']:''))selected @endif> |-{{$item->name}}</option>
|
|
|
@endforeach
|
|
|
@endforeach
|
|
|
@endif
|