Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/views/admin/users/index.blade.php
7461 views
1
@extends('layouts.admin')
2
3
@section('title')
4
List Users
5
@endsection
6
7
@section('content-header')
8
<h1>Users<small>All registered users on the system.</small></h1>
9
<ol class="breadcrumb">
10
<li><a href="{{ route('admin.index') }}">Admin</a></li>
11
<li class="active">Users</li>
12
</ol>
13
@endsection
14
15
@section('content')
16
<div class="row">
17
<div class="col-xs-12">
18
<div class="box box-primary">
19
<div class="box-header with-border">
20
<h3 class="box-title">User List</h3>
21
<div class="box-tools search01">
22
<form action="{{ route('admin.users') }}" method="GET">
23
<div class="input-group input-group-sm">
24
<input type="text" name="filter[email]" class="form-control pull-right" value="{{ request()->input('filter.email') }}" placeholder="Search">
25
<div class="input-group-btn">
26
<button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
27
<a href="{{ route('admin.users.new') }}"><button type="button" class="btn btn-sm btn-primary" style="border-radius: 0 3px 3px 0;margin-left:-1px;">Create New</button></a>
28
</div>
29
</div>
30
</form>
31
</div>
32
</div>
33
<div class="box-body table-responsive no-padding">
34
<table class="table table-hover">
35
<thead>
36
<tr>
37
<th>ID</th>
38
<th>Email</th>
39
<th>Client Name</th>
40
<th>Username</th>
41
<th class="text-center">2FA</th>
42
<th class="text-center"><span data-toggle="tooltip" data-placement="top" title="Servers that this user is marked as the owner of.">Servers Owned</span></th>
43
<th class="text-center"><span data-toggle="tooltip" data-placement="top" title="Servers that this user can access because they are marked as a subuser.">Can Access</span></th>
44
<th></th>
45
</tr>
46
</thead>
47
<tbody>
48
@foreach ($users as $user)
49
<tr class="align-middle">
50
<td><code>{{ $user->id }}</code></td>
51
<td><a href="{{ route('admin.users.view', $user->id) }}">{{ $user->email }}</a> @if($user->root_admin)<i class="fa fa-star text-yellow"></i>@endif</td>
52
<td>{{ $user->name_last }}, {{ $user->name_first }}</td>
53
<td>{{ $user->username }}</td>
54
<td class="text-center">
55
@if($user->use_totp)
56
<i class="fa fa-lock text-green"></i>
57
@else
58
<i class="fa fa-unlock text-red"></i>
59
@endif
60
</td>
61
<td class="text-center">
62
<a href="{{ route('admin.servers', ['filter[owner_id]' => $user->id]) }}">{{ $user->servers_count }}</a>
63
</td>
64
<td class="text-center">{{ $user->subuser_of_count }}</td>
65
<td class="text-center"><img src="https://www.gravatar.com/avatar/{{ md5(strtolower($user->email)) }}?s=100" style="height:20px;" class="img-circle" /></td>
66
</tr>
67
@endforeach
68
</tbody>
69
</table>
70
</div>
71
@if($users->hasPages())
72
<div class="box-footer with-border">
73
<div class="col-md-12 text-center">{!! $users->appends(['query' => Request::input('query')])->render() !!}</div>
74
</div>
75
@endif
76
</div>
77
</div>
78
</div>
79
@endsection
80
81