Employees under {{ Auth::user()->name }}
@if (session('message'))
× {{ session('message') }}.
@endif
@isset($parent)
{{ Auth::user()->name }}
{{ $parent_details->name }}
ID: {{ $parent_details->emp_id }}
@php $designation = App\Models\Designation::where('id', $parent_details->designation_id) ->first(); $departmrnt = App\Models\Department::where('id', $parent_details->department_id)->first(); @endphp
{{ $designation->name ?? 'No Data' }}, {{ $departmrnt->name }}
@endisset
{{--
Level 1
--}}
@isset($child_details)
@forelse ($child_details as $child_details)
{{ $child_details->name }}
{{ $child_details->name }}
ID: {{ $child_details->emp_id }}
@php $designation = App\Models\Designation::where('id', $child_details->designation_id) ->first(); $departmrnt = App\Models\Department::where('id', $child_details->department_id)->first(); @endphp
{{ $designation->name ?? 'No Data' }}, {{ $departmrnt->name }}
{{--
@csrf
--}} {{-- --}}
@empty
No Child
No Child
@endforelse
@endisset