moon display

This commit is contained in:
2020-02-24 22:56:13 -06:00
parent 7bf659c2f5
commit f183738a62
2 changed files with 6 additions and 10 deletions

View File

@@ -153,10 +153,10 @@ class MoonsController extends Controller
//Update the current moon's status in the model AllianceMoon
AllianceMoon::where([
'region' => $region,
'system' => $request->system,
'planet' => $request->planet,
'moon' => $request->moon,
'Region' => $region,
'System' => $request->system,
'Planet' => $request->planet,
'Moon' => $request->moon,
])->update([
'Available' => 'Request Pending',
]);

View File

@@ -31,7 +31,7 @@
<th>Third Quantity</th>
<th>Fourth Ore</th>
<th>Fourth Quantity</th>
<th>Available</th>
<th>Availability</th>
</thead>
<tbody>
@foreach($moons as $moon)
@@ -48,11 +48,7 @@
<td>{{ $moon->ThirdQuantity }}</td>
<td>{{ $moon->FourthOre }}</td>
<td>{{ $moon->FourthQuantity }}</td>
@if($moon->Available == 1)
<td>Yes</td>
@else
<td>No</td>
@endif
<td>{{ $moon->Available }}</td>
</tr>
@endif
@endforeach