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 @@

Moons in W4RP Space

+ @foreach($systems as $system) +
+ + + + + + + + + + + + + + + + + @foreach($moons as $moon) + @if($moon->System == $system) + + + + + + + + + + + + + @if($moon->Available == 1) + + @else + + @endif + + @endif + @endforeach + +
LocationCorporationStructure NameFirst OreFirst QuantitySecond OreSecond QuantityThird OreThird QuantityFourth OreFourth QuantityAvailable
{{ $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 }}YesNo
+
+ @endforeach

Table Goes here