From 8c199d8ee87b6ffb86fccc5dba273499808fe31b Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sun, 23 Feb 2020 22:31:35 -0600 Subject: [PATCH] moons controller --- app/Models/Moon/AllianceMoon.php | 2 + resources/views/moons/user/allmoons.blade.php | 47 +++++++++++++++++++ 2 files changed, 49 insertions(+) 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