@php($inactive = 'style="color: red;"') @foreach($childs as $child)
  • category_is_exist == 0) ? $inactive : '' !!}> {{ $child->category_name }} {!! Form::radio('tree_id',$child->category_id , isset($product) ? (($product->category_id == $child->category_id) ? true : false) : false, ['data' => $child->category_name] ) !!} @if(count($child->childs)) @include('admin.category.child',['childs' => $child->childs]) @endif
  • @endforeach