Path: blob/1.0-develop/resources/views/admin/users/index.blade.php
7461 views
@extends('layouts.admin')12@section('title')3List Users4@endsection56@section('content-header')7<h1>Users<small>All registered users on the system.</small></h1>8<ol class="breadcrumb">9<li><a href="{{ route('admin.index') }}">Admin</a></li>10<li class="active">Users</li>11</ol>12@endsection1314@section('content')15<div class="row">16<div class="col-xs-12">17<div class="box box-primary">18<div class="box-header with-border">19<h3 class="box-title">User List</h3>20<div class="box-tools search01">21<form action="{{ route('admin.users') }}" method="GET">22<div class="input-group input-group-sm">23<input type="text" name="filter[email]" class="form-control pull-right" value="{{ request()->input('filter.email') }}" placeholder="Search">24<div class="input-group-btn">25<button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>26<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>27</div>28</div>29</form>30</div>31</div>32<div class="box-body table-responsive no-padding">33<table class="table table-hover">34<thead>35<tr>36<th>ID</th>37<th>Email</th>38<th>Client Name</th>39<th>Username</th>40<th class="text-center">2FA</th>41<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>42<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>43<th></th>44</tr>45</thead>46<tbody>47@foreach ($users as $user)48<tr class="align-middle">49<td><code>{{ $user->id }}</code></td>50<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>51<td>{{ $user->name_last }}, {{ $user->name_first }}</td>52<td>{{ $user->username }}</td>53<td class="text-center">54@if($user->use_totp)55<i class="fa fa-lock text-green"></i>56@else57<i class="fa fa-unlock text-red"></i>58@endif59</td>60<td class="text-center">61<a href="{{ route('admin.servers', ['filter[owner_id]' => $user->id]) }}">{{ $user->servers_count }}</a>62</td>63<td class="text-center">{{ $user->subuser_of_count }}</td>64<td class="text-center"><img src="https://www.gravatar.com/avatar/{{ md5(strtolower($user->email)) }}?s=100" style="height:20px;" class="img-circle" /></td>65</tr>66@endforeach67</tbody>68</table>69</div>70@if($users->hasPages())71<div class="box-footer with-border">72<div class="col-md-12 text-center">{!! $users->appends(['query' => Request::input('query')])->render() !!}</div>73</div>74@endif75</div>76</div>77</div>78@endsection798081