Files
w4rpservices/resources/views/moons/admin/adminmoon.blade.php
drkthunder02 676117c053 Modified folders for commands.
Added job for retrieving assets from esi.
Modified moon rental data to flow better with views.
2019-06-04 03:47:00 -05:00

76 lines
2.6 KiB
PHP

@extends('layouts.b4')
@section('content')
<br>
{!! Form::open(['action' => 'Moons\MoonsAdminController@storeMoonRemoval', 'method' => 'POST']) !!}
<div class="container col-md-12">
<table class="table table-striped">
<thead>
<th>System</th>
<th>Name</th>
<th>Rental Price</th>
<th>Ally Rental Price</th>
<th>Renter</th>
<th>Contact</th>
<th>Rental End</th>
<th>Paid?</th>
<th>Mark Paid</th>
</thead>
<tbody>
@foreach($table as $row)
<tr class="{{ $row['RowColor'] }}">
<td>{{ $row['SPM'] }}</td>
<td>{{ $row['StructureName'] }}</td>
<td>{{ $row['AlliancePrice'] }}</td>
<td>{{ $row['OutOfAlliancePrice'] }}</td>
<td>{{ $row['Renter'] }}</td>
<td>{{ $row['Contact'] }}</td>
<td>{{ $row['RentalEnd'] }}</td>
@if($row['Paid'] == 'Yes')
<td>Yes</td>
@else
<td>No</td>
@endif
<td>{{ Form::radio('remove', $row['SPM'], false, ['class' => 'form-control']) }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
{{ Form::submit('Update', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
<br>
<div class="container-fluid">
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
Legend
</div>
<div class="card-body">
<table class="table table-striped">
<tbody>
<tr class="table-success">
<td>Moon Available</td>
</tr>
<tr class="table-danger">
<td>Moon Rented</td>
</tr>
<tr class="table-warning">
<td>Moon Rent Due</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
</div>
</div>
@endsection