moons controller

This commit is contained in:
2020-02-24 00:06:42 -06:00
parent 12b6f0120b
commit 203b2085ef
5 changed files with 41 additions and 61 deletions
@@ -1,4 +1,4 @@
@extends('layouts.b4')
@extends('layouts.moons.b4')
@section('content')
<div class="row">
<div class="container">
@@ -1,50 +0,0 @@
@extends('layouts.b4')
@section('content')
<div class="container">
<ul class="nav nav-tabs">
@foreach($systems as $system)
<li class="nav-item">
<a class="nav-link" href="/{{$system}}">{{ $system }}</a>
</li>
@endforeach
</ul>
<table class="table table-striped table-bordered">
<thead>
<th>Location</th>
<th>Corporation</th>
<th>Structure Name</th>
<th>First Ore</th>
<th>First Quantity</th>
<th>Second Ore</th>
<th>Second Quantity</th>
<th>Third Ore</th>
<th>Third Quantity</th>
<th>Fourth Ore</th>
<th>Fourth Quantity</th>
<th>Available</th>
</thead>
<tbody>
@foreach($moons as $moon)
<tr>
<td>{{ $moon->System . " - " . $moon->Planet . " - " . $moon->Moon }}</td>
<td>{{ $moon->Corporation }}</td>
<td>{{ $moon->StructureName }}</td>
<td>{{ $moon->FirstOre }}</td>
<td>{{ $moon->FirstQuantity }}</td>
<td>{{ $moon->SecondOre }}</td>
<td>{{ $moon->SecondQuantity }}</td>
<td>{{ $moon->ThirdOre }}</td>
<td>{{ $moon->ThirdQuantity }}</td>
<td>{{ $moon->FourthOre }}</td>
<td>{{ $moon->FourthQuantity }}</td>
@if($moon->Available == 1)
<td>Yes</td>
@else
<td>No</td>
@endif
</tr>
@endforeach
</tbody>
</table>
</div>
@endsection