Added denied applications page

This commit adds a modified version of the previous page, meant for displaying denied apps.
Also modified method names and adds dates.
This commit is contained in:
Miguel Nogueira 2020-04-30 16:55:14 +01:00
parent 169f58c8ec
commit 76d6ea6704
4 changed files with 95 additions and 2 deletions

View File

@ -7,9 +7,14 @@ use Illuminate\Http\Request;
class ApplicationController extends Controller
{
public function showPendingUserApplications()
public function showPendingUserApps()
{
return view('dashboard.user.applications');
}
public function showDeniedUserApps()
{
return view('dashboard.user.deniedapplications');
}
}

View File

@ -41,6 +41,8 @@
<tr>
<th style="width: 10px">#</th>
<th>Applicant</th>
<th>Application Date</th>
<th>Updated On</th>
<th style="width: 40px">Status</th>
<th style="width: 40px">Actions</th>
</tr>
@ -49,6 +51,8 @@
<tr>
<td>1.</td>
<td>Jonathan Smith</td>
<td>2020-04-28</td>
<td>2020-04-29</td>
<td><span class="badge bg-success">Approved</span></td>
<td>

View File

@ -0,0 +1,83 @@
@extends('adminlte::page')
@section('title', 'Raspberry Network | Applications')
@section('content_header')
<h4>My Account / Denied Applications</h4>
@stop
@section('content')
<div class="row">
<div class="col">
<div class="callout callout-danger">
<h5>Info on denied applications</h5>
<p>Please note that all applications listed on this page have been denied by the staff team / applications team.</p>
<p>The system will only let you apply every thirty days. Your previous applications will be kept for your reference, but you can always delete them here.</p>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
<h3 class="card-title">My Denied Applications</h3>
</div>
<!-- /.card-header -->
<div class="card-body p-0"> <!-- move to dedi css -->
<table class="table" style="white-space: nowrap">
<thead>
<tr>
<th style="width: 10px">#</th>
<th>Applicant</th>
<th>Application Date</th>
<th>Denial Date</th>
<th style="width: 40px">Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.</td>
<td>Jonathan Smith</td>
<td>2020-04-28</td>
<td>2020-04-30</td>
<td></td>
<td><span class="badge bg-danger">Denied</span></td>
<td>
<button type="button" class="btn btn-success btn-sm">View</button>
<button type="button" class="btn btn-danger btn-sm">Delete</button>
</td>
</tr>
</tbody>
</table>
</div>
<!-- /.card-body -->
<div class="card-footer">
<button type="button" class="btn btn-default mr-2">Back</button>
<button type="button" class="btn btn-info mr-2">Approved Applications</button>
<button type="button" class="btn btn-info mr-2">Active Applications</button>
</div>
</div>
</div>
</div>
@stop

View File

@ -25,7 +25,8 @@ Route::group(['middleware' => 'auth'], function(){
Route::group(['prefix' => '/applications'], function (){
Route::get('/pending', 'ApplicationController@showPendingUserApplications');
Route::get('/pending', 'ApplicationController@showPendingUserApps');
Route::get('/denied', 'ApplicationController@showDeniedUserApps');
});