Files
w4rpservices/resources/views/srp/admin/process.blade.php
2019-06-30 02:25:36 -05:00

47 lines
1.8 KiB
PHP

@extends('layouts.b4')
@section('content')
{!! Form::open(['action' => 'SRP\SRPAdminController@processSRPRequest', 'method' => 'POST']) !!}
@if($requests != null)
<div class="container col-md-12">
<table class="table table-striped">
<thead>
<th>Timestamp</th>
<th>Pilot</th>
<th>Fleet Commander</th>
<th>zKillboard Link</th>
<th>Total Loss Value</th>
<th>Type of Ship</th>
<th>Fleet Type</th>
<th>Actual SRP</th>
<th>Notes</th>
<th>Pay Out</th>
</thead>
<tbody>
@foreach($requests as $row)
<tr>
<td>{{ $row['created_at'] }}</td>
<td>{{ $row['pilot'] }}</td>
<td>{{ $row['fc'] }}</td>
<td><a href="{{ $row['link'] }}">zKill Link</a></td>
<td>{{ $row['loss'] }}</td>
<td>{{ $row['ship_type'] }}</td>
<td>{{ $row['fleet_type'] }}</td>
<td>{{ $row['actual_srp'] }}</td>
<td>{{ Form::textarea('notes', null, ['class' => 'form-control', 'id' => 'notes', 'rows' => 4, 'cols' => 30, 'style' => 'resize:none']) }}
<td>{{ Form::radio('pay_out', $row['id'], false, ['class' => 'form-control']) }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
{{ Form::submit('Pay Out', ['class' => 'form-control']) }}
{!! Form::close() !!}
@else
<div class="row content-justify-center">
<div class="container col-md-12">
<h3>No Open SRP Requests</h3>
</div>
</div>
@endif
@endsection