admin test dashboard

This commit is contained in:
2020-04-03 02:11:26 -05:00
parent 76b4fc559c
commit 9ff3c46a07
2 changed files with 9 additions and 47 deletions

View File

@@ -1,51 +1,13 @@
@extends('layouts.admin.b4')
@section('content')
<div class="container">
<h2>Admin Dashboard Test</h2><br>
<div class="card">
<div class="card-header">
<h2>User Information</h2>
<h2>W4RP Statistics</h2>
</div>
<div class="card-body">
<div class="container">
{!! Form::open(['action' => 'Dashboard\AdminController@searchUsers', 'method' => 'POST']) !!}
<div class="form-group">
{{ Form::label('parameter', 'Seach For A User') }}
{{ Form::text('parameter', '', ['class' => 'form-control', 'placeholder' => 'CCP Antiquarian']) }}
</div>
{{ Form::submit('Search', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
</div>
<table class="table table-striped table-bordered">
<thead>
<th>Name</th>
<th>Role</th>
<th>Permissions</th>
<th>Action</th>
</thead>
<tbody>
@foreach($usersArr as $user)
<tr>
<td>{{ $user->name }}</td>
<td>{{ $user->role }}</td>
<td>{{ $user->permission }}</td>
<td>
{!! Form::open(['action' => 'Dashboard\AdminController@displayModifyUser', 'method' => 'POST']) !!}
{{ Form::hidden('user', $user->name) }}
{{ Form::submit('Modify User', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
{!! Form::open(['action' => 'Dashboard\AdminController@removeUser', 'method' => 'POST']) !!}
{{ Form::hidden('user', $user->name) }}
{{ Form::submit('Remove User', ['class' => 'btn btn-danger']) }}
{!! Form::close() !!}
</td>
</tr>
@endforeach
</tbody>
</table>
<h2>Stuff</h2>
</div>
</div>
<br>
{{ $usersArr->links() }}
</div>
@endsection

View File

@@ -1,8 +1,8 @@
@extends('layouts.b4')
@extends('layouts.admin.b4')
@section('content')
<br>
{!! Form::open(['action' => 'Moons\MoonsAdminController@storeMoonRemoval', 'method' => 'POST']) !!}
<div class="container col-md-12">
<div class="container">
<table class="table table-striped">
<thead>
<th>System</th>
@@ -42,7 +42,7 @@
{{ Form::submit('Update', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
<br>
<div class="container-fluid">
<div class="container">
<div class="row">
<div class="col">
<div class="card">