moon rental pages
This commit is contained in:
@@ -167,6 +167,7 @@ class MiningTaxesController extends Controller
|
||||
'Ytterbite',
|
||||
];
|
||||
|
||||
//Get all of the system names from the database by plucking all the non-rented moon system names
|
||||
$systems = AllianceMoon::where([
|
||||
'rented' => 'No',
|
||||
])->pluck('system_name')->unique()->toArray();
|
||||
@@ -176,6 +177,7 @@ class MiningTaxesController extends Controller
|
||||
'rented' => 'No',
|
||||
])->get();
|
||||
|
||||
//Cycle through all of the moons to create arrays of data
|
||||
foreach($allyMoons as $moon) {
|
||||
$ores = AllianceMoonOre::where([
|
||||
'moon_id' => $moon->moon_id,
|
||||
|
||||
@@ -138,14 +138,14 @@
|
||||
<td></td>
|
||||
<td></td>
|
||||
@endif
|
||||
<td>{{ number_format($moon->worth_amount, 0, ".", ",") }}</td>
|
||||
<td>{{ number_format($moon->rental_amount, 0, ".", ",") }}</td>
|
||||
<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::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>
|
||||
|
||||
Reference in New Issue
Block a user