panel fixes

This commit is contained in:
Conkley 2022-08-20 11:33:27 +10:00
parent 692d2ca2bc
commit f088aa24ed
3 changed files with 53 additions and 29 deletions

View File

@ -25,19 +25,43 @@
@if (request()->query('q')) @if (request()->query('q'))
<a href="{{ route('admin_tree') }}" class="SearchCloseBtn">X</a> <a href="{{ route('admin_tree') }}" class="SearchCloseBtn">X</a>
@endif @endif
</input> <button class="btn-neutral btn-small" name="searchBy" value="name" type="submit">Search by
<button class="btn-neutral btn-small" name="searchBy" value="name">Search by Username</button> Username</button>
<button class="btn-neutral btn-small" name="searchBy" value="id">Search by ID</button> <button class="btn-neutral btn-small" name="searchBy" value="id" type="submit">Search by
ID</button>
</div> </div>
</form> </form>
@if ($user) @if ($user)
<div class="UserList"> <div class="UserList">
<h2>User Found: {{ $user->name }}</h2>
<ul>
<li>
<h3><a href="{{ route('profile', App\Models\User::where('name', $invited_by)->first()->id) }}"
target="_blank">{{ $invited_by }}</a>
</h3>
</li>
<ul>
<li><a href="{{ route('profile', $user->id) }}" target="_blank">{{ $user->name }}</a></li>
<ul>
@foreach ($children as $child)
<li><a href="{{ route('profile', $child->id) }}" target="_blank">{{ $child->name }}</a>
</li>
@endforeach
</ul>
</ul>
</ul>
</div> </div>
@endif @endif
@if (!request()->has('q'))
<h5>Enter a username or ID.</h5>
@elseif (!$user)
<h5>No user was found, check if you entered the correct details.</h5>
@endif
</div> </div>
</div> </div>
@endsection @endsection
@section('content') @section('content')
<!-- This is legacy code and won't output to the document - Conkley -->
<div id="UserList"> <div id="UserList">
<h2>Invite Tree</h2> <h2>Invite Tree</h2>
@if (request()->query('q')) @if (request()->query('q'))
@ -55,15 +79,16 @@
<h2>User Found: {{ $user->name }}</h2> <h2>User Found: {{ $user->name }}</h2>
<ul> <ul>
<li> <li>
<h3><a <h3><a href="{{ route('profile', App\Models\User::where('name', $invited_by)->first()->id) }}"
href="{{ route('profile', App\Models\User::where('name', $invited_by)->first()->id) }}" target="_blank">{{ $invited_by }}</a> target="_blank">{{ $invited_by }}</a>
</h3> </h3>
</li> </li>
<ul> <ul>
<li><a href="{{ route('profile', $user->id) }}" target="_blank">{{ $user->name }}</a></li> <li><a href="{{ route('profile', $user->id) }}" target="_blank">{{ $user->name }}</a></li>
<ul> <ul>
@foreach ($children as $child) @foreach ($children as $child)
<li><a href="{{ route('profile', $child->id) }}" target="_blank">{{ $child->name }}</a></li> <li><a href="{{ route('profile', $child->id) }}" target="_blank">{{ $child->name }}</a>
</li>
@endforeach @endforeach
</ul> </ul>
</ul> </ul>

View File

@ -24,7 +24,6 @@
@if (request()->query('q')) @if (request()->query('q'))
<a href="{{ route('admin_users') }}" class="SearchCloseBtn">X</a> <a href="{{ route('admin_users') }}" class="SearchCloseBtn">X</a>
@endif @endif
</input>
<button class="btn-neutral btn-small" name="searchBy" value="name">Search by Username</button> <button class="btn-neutral btn-small" name="searchBy" value="name">Search by Username</button>
<button class="btn-neutral btn-small" name="searchBy" value="id">Search by ID</button> <button class="btn-neutral btn-small" name="searchBy" value="id">Search by ID</button>
</div> </div>
@ -131,12 +130,12 @@
{{ Auth::user()->getMutualFriendsCount($user) }} {{ Auth::user()->getMutualFriendsCount($user) }}
</a> </a>
</div> </div>
<div class="Row hidden"> <div class="Row">
<div class="text-secondary"> <div class="text-secondary">
Total Badges : Total Badges :
</div> </div>
<a class="text-secondary"> <a class="text-secondary">
N/A {{ sizeof($user->badges) }}
</a> </a>
</div> </div>
<div class="Row hidden"> <div class="Row hidden">

View File

@ -23,7 +23,7 @@
<body> <body>
@yield('alert') @yield('alert')
<div id="MasterContainer" class="AdminPanel" style="width: 100%;"> <div id="MasterContainer" class="NewPanel AdminPanel" style="width: 100%;">
<div id="AdminWrapper" class="Navigation"> <div id="AdminWrapper" class="Navigation">
<div class="AdminHeader"> <div class="AdminHeader">
<span class="SiteBrand" href="{{ route('home') }}"> <span class="SiteBrand" href="{{ route('home') }}">