<option value="{{$category->id}}" {{request('category')==$category->id?'selected':''}}>
    @for($i=2;$i<=$level;$i++)
        &#160; &#160;
    @endfor
    {{$category->title}}


</option>


@if(isset($category->childs))
    @if(count($category->childs)!=0)
        @foreach($category->childs as $child)
            @include('store::products._single_select_option',['category'=>$child,'level'=>$level + 1])
        @endforeach
    @endif
@endif
