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

54 lines
2.1 KiB
PHP

@extends('layouts.b4')
@section('content')
{!! Form::open(['action' => 'SRP\SRPController@processForm', 'method' => 'POST']) !!}
<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>
@if($requests != null)
@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
@else
<tr>
<td>--</td>
<td>--</td>
<td>--</td>
<td>--</td>
<td>--</td>
<td>--</td>
<td>--</td>
<td>--</td>
<td>--</td>
<td>--</td>
<td>--</td>
</tr>
@endif
</tbody>
</table>
</div>
{{ Form::submit('Pay Out', ['class' => 'form-control']) }}
{!! Form::close() !!}
@endsection