{{ $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' }} {!! str_repeat('   ', $user->level ?? 0) !!}{{ $user->user_types }} {{isset($distributors[$user->id]) ? $distributors[$user->id]['sub_area_name'] : null}} {{isset($distributors[$user->id]) ? $distributors[$user->id]['distributor_name'] : null}} {{isset($distributors[$user->id]) ? $distributors[$user->id]['target_amount'] : null}} @if(isset($distributors[$user->id])) @if (Auth::user()->id == "2") @endif @endif @if(!empty($user->children)) @foreach($user->children as $child) @php $child->level = ($user->level ?? 0) + 1; @endphp @include('components.target-row', ['user' => $child, 'serial' => &$serial]) @endforeach @endif