@foreach($childs as $key => $child) {{ $child->text }} {{ Ucfirst($child->task_priority) }} {{ Ucfirst($child->task_type) }} - - {{ number_format($child->total_cost , 2) }} @if($child->node_name == 'leaf') @else {{'-'}} @endif @if(count($child->childs) ) @include('procurement.work-order.child-layout.manage-list-child',['childs' => $child->childs]) @endif @endforeach