@extends('layouts.app') @section('title', __('Binary tree')) @section('content')

{{ __('A live view of the placements connected to your account.') }}

{{ __('View team list') }}

{{ __('Your placement') }}

{{ strtoupper(substr($user->name, 0, 1)) }}

{{ $user->name }}

{{ $user->member_id ?: __('Member') }} · {{ __('You') }}

@forelse($treeLevels as $levelIndex => $positions)

{{ __('Level :level', ['level' => $levelIndex + 1]) }}

{{ $positions->count() }} {{ \Illuminate\Support\Str::plural('member', $positions->count()) }}
@foreach($positions as $position)

{{ $position->user->name ?? __('Account unavailable') }}

{{ $position->user->member_id ?? '—' }}

{{ __($position->side ?: 'Root') }}
@endforeach
@empty

{{ __('Your tree is ready to grow') }}

{{ __('There are no placed team members connected to your account yet.') }}

{{ __('Explore your team') }} →
@endforelse @if(count($treeLevels) === 4 && $treeLevels[3]->isNotEmpty())

{{ __('Showing the first four levels of your network.') }}

@endif
@endsection