{{ $serial++ }} {!! str_repeat('   ', $user->level ?? 0) !!}{{ $user->designation }} {{ $user->id }} {!! str_repeat('   ', $user->level ?? 0) !!}{{ $user->name }} {!! str_repeat('   ', $user->level ?? 0) !!}{{ $user->parent_name ?? 'N/A' }} {{ $user->email }} {!! str_repeat('   ', $user->level ?? 0) !!}{{ $user->user_types }} @if (Auth::user()->user_types == "1") |
{{ method_field('DELETE') }}
@endif @if(!empty($user->children)) @foreach($user->children as $child) @php $child->level = ($user->level ?? 0) + 1; @endphp @include('components.user-row', ['user' => $child, 'serial' => &$serial]) @endforeach @endif