moon rental pages

This commit is contained in:
2021-07-09 01:06:40 -05:00
parent 1a44be502a
commit b310799bf0
8 changed files with 252 additions and 2 deletions
@@ -29,6 +29,9 @@
<th>Third Quantity</th>
<th>Fourth Ore</th>
<th>Fourth Quantity</th>
<th>Moon Worth</th>
<th>Rental Cost</th>
<th>Rent?</th>
</thead>
<tbody>
@foreach($moons as $moon)
@@ -135,6 +138,17 @@
<td></td>
<td></td>
@endif
<td>{{ number_format($moon->worth_amount, 0, ".", ",") }}</td>
<td>{{ number_format($moon->rental_amount, 0, ".", ",") }}</td>
<td>
{!! Form::open(['action' => 'MiningTaxes\MiningTaxesController@DisplayMoonRentalForm', 'method' => 'POST']) !!}
{{ Form::hidden('moon_id', $moon->moon_id) }}
{{ Form::hidden('moon_name', $moon->moon_name) }}
{{ Form::hidden('worth_amount', $moon->worth_amount) }}
{{ Form::hidden('rental_amount', $moon->rental_amount) }}
{{ Form::submit('Rent', ['class' => 'btn btn-danger']) }}
{!! Form::close() !!}
</td>
</tr>
@endif
@endforeach