Organogram

{{csrf_field()}}
@foreach($categories as $catkey => $category)
  • @if($category->profile_picture =='') @else @endif
    ({{$category->id}})

    {{$category->first_name}} {{$category->last_name}}

    @if(count($category->childs) > 0) @include('admin.organogram',['class_name' => 'block','emp_id' => '','childs' => $category->childs,'class_add' => count($category->childs) == 0 ? '' : '','id' => $category->id]) @endif
@endforeach