@foreach($categories as $category)
  • {{ $category->category_name }} @if(isset($flag)) {!! Form::radio('tree_id',$category->category_id , isset($product) ? (($product->category_id == $category->category_id) ? true : false) : false,['data' => $category->category_name]) !!} @endif @if(count($category->childs)) @include('admin.category.child',['childs' => $category->childs]) @endif
  • @endforeach