This commit is contained in:
2019-08-06 12:47:07 -05:00
parent cf300efdaa
commit 004eb146bf

View File

@@ -22,46 +22,44 @@
<br> <br>
<div class="container col-md-12"> <div class="container col-md-12">
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-md-12"> <div class="card">
<div class="card"> <div class="card-header">
<div class="card-header"> <div class="row">
<div class="row"> <div class="col">
<div class="col"> Open SRP Requests<br>
Open SRP Requests<br> # Open: {{ $openCount }}<br>
# Open: {{ $openCount }}<br> </div>
</div> <div class="col">
<div class="col"> <div id="under-review-div"></div>
<div id="under-review-div"></div> {!! $lava->render('GaugeChart', 'SRP', 'under-review-div') !!}
{!! $lava->render('GaugeChart', 'SRP', 'under-review-div') !!}
</div>
</div> </div>
</div> </div>
<div class="card-body"> </div>
@if($openCount > 0) <div class="card-body">
<table class="table table-striped"> @if($openCount > 0)
<thead> <table class="table table-striped">
<th>Character</th> <thead>
<th>Fleet Commander</th> <th>Character</th>
<th>Ship Type</th> <th>Fleet Commander</th>
<th>Loss Value</th> <th>Ship Type</th>
<th>Status</th> <th>Loss Value</th>
</thead> <th>Status</th>
<tbody> </thead>
@foreach($open as $o) <tbody>
<tr> @foreach($open as $o)
<td>{{ $o['character_name'] }}</td> <tr>
<td>{{ $o['fleet_commander_name'] }}</td> <td>{{ $o['character_name'] }}</td>
<td>{{ $o['ship_type'] }}</td> <td>{{ $o['fleet_commander_name'] }}</td>
<td>{{ $o['loss_value'] }}</td> <td>{{ $o['ship_type'] }}</td>
<td>{{ $o['approved'] }}</td> <td>{{ $o['loss_value'] }}</td>
</tr> <td>{{ $o['approved'] }}</td>
@endforeach </tr>
</tbody> @endforeach
</table> </tbody>
@else </table>
No Open SRP Requests @else
@endif No Open SRP Requests
</div> @endif
</div> </div>
</div> </div>
</div> </div>
@@ -69,40 +67,38 @@
<br> <br>
<div class="container col-md-12"> <div class="container col-md-12">
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-md-12"> <div class="card">
<div class="card"> <div class="card-header">
<div class="card-header"> Denied SRP Requests<br>
Denied SRP Requests<br> # Denied: {{ $deniedCount }}
# Denied: {{ $deniedCount }} </div>
</div> <div class="card-body">
<div class="card-body"> @if($deniedCount > 0)
@if($deniedCount > 0) <table class="table table-striped">
<table class="table table-striped"> <thead>
<thead> <th>Character</th>
<th>Character</th> <th>Fleet Commander</th>
<th>Fleet Commander</th> <th>Ship Type</th>
<th>Ship Type</th> <th>Loss Value</th>
<th>Loss Value</th> <th>Status</th>
<th>Status</th> <th>Notes</th>
<th>Notes</th> </thead>
</thead> <tbody>
<tbody> @foreach($denied as $d)
@foreach($denied as $d) <tr>
<tr> <td>{{ $d['character_name'] }}</th>
<td>{{ $d['character_name'] }}</th> <td>{{ $d['fleet_commander_name'] }}</td>
<td>{{ $d['fleet_commander_name'] }}</td> <td>{{ $d['ship_type'] }}</td>
<td>{{ $d['ship_type'] }}</td> <td>{{ $d['loss_value'] }}</td>
<td>{{ $d['loss_value'] }}</td> <td>{{ $d['approved'] }}</td>
<td>{{ $d['approved'] }}</td> <td>{{ $d['notes'] }}</td>
<td>{{ $d['notes'] }}</td> </tr>
</tr> @endforeach
@endforeach </tbody>
</tbody> </table>
</table> @else
@else No Denied SRP Requests
No Denied SRP Requests @endif
@endif
</div>
</div> </div>
</div> </div>
</div> </div>
@@ -110,38 +106,36 @@
<br> <br>
<div class="container col-md-12"> <div class="container col-md-12">
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-md-12"> <div class="card">
<div class="card"> <div class="card-header">
<div class="card-header"> Approved SRP Requests<br>
Approved SRP Requests<br> # Approved: {{ $approvedCount }}
# Approved: {{ $approvedCount }} </div>
</div> <div class="card-body">
<div class="card-body"> @if($approvedCount > 0)
@if($approvedCount > 0) <table class="table table-striped">
<table class="table table-striped"> <thead>
<thead> <th>Character</th>
<th>Character</th> <th>Fleet Commander</th>
<th>Fleet Commander</th> <th>Ship Type</th>
<th>Ship Type</th> <th>Loss Value</th>
<th>Loss Value</th> <th>Status</th>
<th>Status</th> </thead>
</thead> <tbody>
<tbody> @foreach($approved as $a)
@foreach($approved as $a) <tr>
<tr> <td>{{ $a['character_name'] }}</td>
<td>{{ $a['character_name'] }}</td> <td>{{ $a['fleet_commander_name'] }}</td>
<td>{{ $a['fleet_commander_name'] }}</td> <td>{{ $a['ship_type'] }}</td>
<td>{{ $a['ship_type'] }}</td> <td>{{ $a['loss_value'] }}</td>
<td>{{ $a['loss_value'] }}</td> <td>{{ $a['approved'] }}</td>
<td>{{ $a['approved'] }}</td> </tr>
</tr> @endforeach
@endforeach </tbody>
</tbody> </table>
</table> @else
@else No Approved SRP Requests
No Approved SRP Requests @endif
@endif
</div>
</div> </div>
</div> </div>
</div> </div>