rbrecruiter/resources/views/dashboard/administration/players.blade.php

182 lines
5.3 KiB
PHP
Raw Permalink Normal View History

2020-05-03 03:31:02 +00:00
@extends('adminlte::page')
@section('title', config('app.name') . ' | ' . __('messages.players.reg_players'))
2020-05-03 03:31:02 +00:00
@section('content_header')
<h4>{{__('messages.adm')}} / {{__('messages.players.reg_players')}}</h4>
2020-05-03 03:31:02 +00:00
@stop
@section('js')
<x-global-errors></x-global-errors>
@stop
2020-05-03 03:31:02 +00:00
@section('content')
<div class="row">
<div class="col">
<div class="small-box bg-info">
<div class="inner">
<h3>{{$users->count()}}</h3>
2020-05-03 03:31:02 +00:00
<p>{{__('messages.players.reg_players')}}</p>
2020-05-03 03:31:02 +00: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">
<h3>{{$bannedUserCount}}</h3>
2020-05-03 03:31:02 +00:00
<p>{{__('messages.players.total_banned')}}</p>
2020-05-03 03:31:02 +00:00
</div>
<div class="icon">
<i class="fa fa-ban"></i>
</div>
</div>
</div>
</div>
2020-12-20 17:57:41 +00:00
2020-05-03 03:31:02 +00:00
<div class="row">
<div class="col-md-4 offset-md-4">
<div class="card">
<div class="card-header">
<div class="card-title"><h4><i class="fas fa-search"></i>{{__('messages.players.search')}}</h4></div>
2020-05-03 03:31:02 +00:00
</div>
<div class="card-body">
<form name="search" method="POST" action="{{route('searchRegisteredPLayerList')}}">
@csrf
2020-05-03 03:31:02 +00:00
<div class="input-group">
<input type="text" name="searchTerm" class="form-control" placeholder="{{__('messages.players.f_p_search')}}">
2020-05-03 03:31:02 +00:00
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row mt-5">
<div class="col">
<div class="alert alert-warning">
<p>{{__('messages.players.p_disclaimer')}}</p>
2020-05-03 03:31:02 +00:00
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="card bg-gray-dark">
<div class="card-header bg-indigo">
<div class="card-title"><h4 class="text-bold">{{__('messages.players.listing')}}</h4></div>
2020-05-03 03:31:02 +00:00
</div>
<div class="card-body">
@if (!$users->isEmpty())
2020-05-03 03:31:02 +00:00
<table class="table table-borderless table-active">
<thead>
<tr>
<th>#</th>
<th>{{__('messages.players.ign')}}</th>
2020-05-03 03:31:02 +00:00
<th>UUID</th>
<th>{{__('messages.contactlabel_email')}}</th>
<th>{{__('messages.reusable.status')}}</th>
<th>{{__('messages.players.reg_date')}}</th>
<th>{{__('messages.reusable.actions')}}</th>
2020-05-03 03:31:02 +00:00
</tr>
</thead>
<tbody>
@foreach($users as $user)
<tr>
<td>{{$user->id}}</td>
<td>{{UUID::toUsername($user->uuid)}}</td>
<td>{{$user->uuid}}</td>
<td>{{ $user->email }}</td>
<td>
@if ($user->isBanned())
<span class="badge badge-danger"><i class="fa fa-ban"></i> {{__('messages.players.banned')}}</span>
@else
<span class="badge badge-success">{{__('messages.players.active')}}</span>
@endif
</td>
<td>{{$user->created_at}}</td>
<td>
<button type="button" class="btn btn-sm btn-success" onclick="window.location.href='{{route('showSingleProfile', ['user' => $user->id])}}'"><i class="fa fa-eye"></i></button>
2020-05-03 03:31:02 +00:00
</td>
</tr>
@endforeach
2020-05-03 03:31:02 +00:00
</tbody>
</table>
@else
<div class="alert alert-secondary">
<i class="fas fa-question"></i><span> {{__('messages.players.no_reg')}}</span>
<p>
{{__('messages.players.no_reg_exp')}}
</p>
</div>
@endif
2020-05-03 03:31:02 +00:00
</div>
<div class="card-footer">
<button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route("staffMemberList")}}'">{{__('messages.players.see_staff')}}</button>
2020-05-03 03:31:02 +00:00
</div>
</div>
</div>
</div>
@stop
2020-07-16 05:46:20 +00:00
@section('footer')
@include('breadcrumbs.dashboard.footer')
@stop