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

@ -14,30 +14,54 @@
@endsection
@section('Body')
<div id="Body" style="width: 970px;">
<h2 class="MainHeader">
Invite Tree
</h2>
<div class="Userlist">
<form method="GET" action="{{ route('admin_tree') }}">
<div>
<input type="text" id="SearchInput" name="q" placeholder="Search" value="{{ request()->q }}">
@if (request()->query('q'))
<a href="{{ route('admin_tree') }}" class="SearchCloseBtn">X</a>
@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="id">Search by ID</button>
</div>
</form>
@if ($user)
<div class="UserList">
</div>
@endif
</div>
</div>
<div id="Body" style="width: 970px;">
<h2 class="MainHeader">
Invite Tree
</h2>
<div class="Userlist">
<form method="GET" action="{{ route('admin_tree') }}">
<div>
<input type="text" id="SearchInput" name="q" placeholder="Search" value="{{ request()->q }}">
@if (request()->query('q'))
<a href="{{ route('admin_tree') }}" class="SearchCloseBtn">X</a>
@endif
<button class="btn-neutral btn-small" name="searchBy" value="name" type="submit">Search by
Username</button>
<button class="btn-neutral btn-small" name="searchBy" value="id" type="submit">Search by
ID</button>
</div>
</form>
@if ($user)
<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>
@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>
@endsection
@section('content')
<!-- This is legacy code and won't output to the document - Conkley -->
<div id="UserList">
<h2>Invite Tree</h2>
@if (request()->query('q'))
@ -55,15 +79,16 @@
<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><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>
<li><a href="{{ route('profile', $child->id) }}" target="_blank">{{ $child->name }}</a>
</li>
@endforeach
</ul>
</ul>

View File

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

View File

@ -23,7 +23,7 @@
<body>
@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 class="AdminHeader">
<span class="SiteBrand" href="{{ route('home') }}">