2020-05-03 04:31:02 +01:00
|
|
|
@extends('adminlte::page')
|
|
|
|
|
2022-02-02 05:36:09 +00:00
|
|
|
@section('title', config('app.name') . ' | ' . __('Registered users'))
|
2020-05-03 04:31:02 +01:00
|
|
|
|
|
|
|
@section('content_header')
|
|
|
|
|
2022-03-19 05:56:20 +00:00
|
|
|
<h4>{{__('Administration')}} / {{__('Users')}}</h4>
|
2020-05-03 04:31:02 +01:00
|
|
|
|
|
|
|
@stop
|
|
|
|
|
2020-06-27 00:32:33 +01:00
|
|
|
@section('js')
|
|
|
|
|
|
|
|
<x-global-errors></x-global-errors>
|
|
|
|
|
|
|
|
@stop
|
|
|
|
|
2020-05-03 04:31:02 +01:00
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
<div class="small-box bg-info">
|
|
|
|
<div class="inner">
|
2022-02-02 05:36:09 +00:00
|
|
|
<h3>{{ $numUsers }}</h3>
|
2020-05-03 04:31:02 +01:00
|
|
|
|
2022-02-02 05:36:09 +00:00
|
|
|
<p>{{__('Registered users')}}</p>
|
2020-05-03 04:31:02 +01:00
|
|
|
</div>
|
|
|
|
<div class="icon">
|
|
|
|
<i class="fa fa-users"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
|
|
|
<div class="small-box bg-danger">
|
|
|
|
<div class="inner">
|
2020-06-27 00:32:33 +01:00
|
|
|
<h3>{{$bannedUserCount}}</h3>
|
2020-05-03 04:31:02 +01:00
|
|
|
|
2022-02-02 05:36:09 +00:00
|
|
|
<p>{{__('Suspended users')}}</p>
|
2020-05-03 04:31:02 +01:00
|
|
|
</div>
|
|
|
|
<div class="icon">
|
|
|
|
<i class="fa fa-ban"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-20 12:57:41 -05:00
|
|
|
|
2020-05-03 04:31:02 +01:00
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
|
|
|
<div class="card bg-gray-dark">
|
|
|
|
|
|
|
|
<div class="card-header bg-indigo">
|
|
|
|
|
2022-02-02 05:36:09 +00:00
|
|
|
<div class="card-title"><h4 class="text-bold">{{__('Registered users')}}</h4></div>
|
2022-02-22 16:54:52 +00:00
|
|
|
<div class="card-tools mt-2">
|
|
|
|
<form name="search" action="{{ route('searchRegisteredPLayerList') }}" method="post">
|
|
|
|
@csrf
|
|
|
|
<div class="input-group input-group-sm" style="width: 200px;">
|
|
|
|
<input type="text" name="searchTerm" class="form-control float-right" placeholder="{{ __('Search') }}">
|
|
|
|
<div class="input-group-append">
|
|
|
|
<button type="submit" class="btn btn-default">
|
|
|
|
<i class="fas fa-search"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2020-05-03 04:31:02 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
2020-06-27 00:32:33 +01:00
|
|
|
@if (!$users->isEmpty())
|
2020-05-03 04:31:02 +01:00
|
|
|
<table class="table table-borderless table-active">
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-10-20 03:43:58 +01:00
|
|
|
<th>{{__('Name')}}</th>
|
2022-10-24 01:01:10 +01:00
|
|
|
<th>{{ __('Role') }}</th>
|
2022-03-19 05:56:20 +00:00
|
|
|
<th>{{__('Registration date')}}</th>
|
|
|
|
<th>{{__('Actions')}}</th>
|
2020-05-03 04:31:02 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
2020-06-27 00:32:33 +01:00
|
|
|
@foreach($users as $user)
|
2020-06-27 19:15:33 +01:00
|
|
|
|
2020-06-27 00:32:33 +01:00
|
|
|
<tr>
|
2021-10-20 03:43:58 +01:00
|
|
|
<td>{{$user->name}}</td>
|
2022-02-02 05:59:33 +00:00
|
|
|
<td>
|
|
|
|
@if ($user->hasRole('reviewer'))
|
2022-03-19 05:56:20 +00:00
|
|
|
<span class="badge badge-warning"><i class="fas fa-user"></i> {{ __('Staff') }}</span>
|
2022-02-02 05:59:33 +00:00
|
|
|
@else
|
2022-03-19 05:56:20 +00:00
|
|
|
<span class="badge-warning badge"><i class="fas fa-user"></i> {{ __('Member') }}</span>
|
2022-02-02 05:59:33 +00:00
|
|
|
@endif
|
|
|
|
</td>
|
2020-06-27 00:32:33 +01:00
|
|
|
<td>{{$user->created_at}}</td>
|
|
|
|
<td>
|
2022-10-24 01:01:10 +01:00
|
|
|
<button type="button" class="btn btn-sm btn-success" onclick="window.location.href='{{route('showSingleProfile', ['user' => $user->id])}}'"><i class="fa fa-eye"></i> {{ __('View') }}</button>
|
|
|
|
<a class="ml-2 btn btn-sm btn-warning" href="{{ route('manageUser', ['user' => $user->id]) }}"><i class="fas fa-wrench"></i> {{ __('Manage') }}</a>
|
2020-05-03 04:31:02 +01:00
|
|
|
</td>
|
2020-06-27 00:32:33 +01:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
@endforeach
|
2020-05-03 04:31:02 +01:00
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
2020-06-27 00:32:33 +01:00
|
|
|
@else
|
|
|
|
<div class="alert alert-secondary">
|
2020-06-27 19:15:33 +01:00
|
|
|
|
2022-03-19 05:56:20 +00:00
|
|
|
<i class="fas fa-question"></i><span> {{__('There are no registered users!')}}</span>
|
2020-06-27 00:32:33 +01:00
|
|
|
<p>
|
2022-03-19 05:56:20 +00:00
|
|
|
{{__('Registered users are those without a staff role in the team management application.')}}
|
2020-06-27 00:32:33 +01:00
|
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
@endif
|
2020-05-03 04:31:02 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-footer">
|
|
|
|
|
2022-02-02 05:36:09 +00:00
|
|
|
{{ $users->links() }}
|
2020-05-03 04:31:02 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|
2020-07-16 06:46:20 +01:00
|
|
|
|
|
|
|
@section('footer')
|
|
|
|
@include('breadcrumbs.dashboard.footer')
|
|
|
|
@stop
|