<ul @if ($isFirst) class="firstList" @endif>
    @foreach ($user->allReferees as $under)
        @if ($loop->first)
            @php $layer++ @endphp
        @endif
        <li>{{ $under->username }}
            @if ($under->allReferees->count() > 0 && $layer < $maxLevel)
                @include('Template::partials.under_tree', ['user' => $under, 'layer' => $layer, 'isFirst' => false])
            @endif
        </li>
    @endforeach
</ul>
