<style>
.firstList {
    list-style-type: none;
    padding-left: 0; 
}

.firstList > li {
    margin: 10px 0; 
    font-weight: bold; 
}

.firstList ul {
    padding-left: 20px; 
}

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