@extends('layouts.admin') @section('title') Admin | Invite Tree - {{ env('APP_NAME') }} @endsection @section('Body')

Invite Tree

@if (!request()->has('q'))
Enter a Username or ID.
@elseif (!$user)
Unable to find user, please check if you entered the correct information.
@endif
@if (request()->query('q')) X @endif
@if ($user) {{ $user->name }}

Invited By

{{ $invited_by }}
{{ $user->name }} Invited
@foreach ($children as $child)
  • {{ $child->name }}
  • @endforeach
    @endif
    @endsection @section('content')

    Invite Tree

    @if (request()->query('q')) Clear Search @endif
    @if ($user)

    User Found: {{ $user->name }}

    @endif @if (!request()->has('q'))
    Enter a username or ID.
    @elseif (!$user)
    No user was found, check if you entered the correct details.
    @endif
    @endsection