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