diff --git a/app/Models/Moon/AllianceMoon.php b/app/Models/Moon/AllianceMoon.php index 3ed6fda38..a38d4b3e4 100644 --- a/app/Models/Moon/AllianceMoon.php +++ b/app/Models/Moon/AllianceMoon.php @@ -26,6 +26,7 @@ class AllianceMoon extends Model 'Planet', 'Moon', 'Corporation', + 'StructureName', 'FirstOre', 'FirstQuantity', 'SecondOre', @@ -34,6 +35,7 @@ class AllianceMoon extends Model 'ThirdQuantity', 'FourthOre', 'FourthQuantity', + 'MoonType', 'Available', ]; } diff --git a/resources/views/moons/user/allmoons.blade.php b/resources/views/moons/user/allmoons.blade.php index 018bb41b8..9721598ca 100644 --- a/resources/views/moons/user/allmoons.blade.php +++ b/resources/views/moons/user/allmoons.blade.php @@ -3,11 +3,58 @@
| Location | +Corporation | +Structure Name | +First Ore | +First Quantity | +Second Ore | +Second Quantity | +Third Ore | +Third Quantity | +Fourth Ore | +Fourth Quantity | +Available | + + + @foreach($moons as $moon) + @if($moon->System == $system) +|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $moon->System . " - " . $moon->Planet . " - " . $moon->Moon }} | +{{ $moon->Corporation }} | +{{ $moon->StructureName }} | +{{ $moon->FirstOre }} | +{{ $moon->FirstQuantity }} | +{{ $moon->SecondOre }} | +{{ $moon->SecondQuantity }} | +{{ $moon->ThirdOre }} | +{{ $moon->ThirdQuantity }} | +{{ $moon->FourthOre }} | +{{ $moon->FourthQuantity }} | + @if($moon->Available == 1) +Yes | + @else +No | + @endif +