From 20cc7f22dc529bcd8df0f4daf6fe3bc9bf84fceb Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Tue, 1 Jun 2021 00:03:31 +0900 Subject: [PATCH] moon displays --- .../MiningTaxes/MiningTaxesController.php | 6 ++++-- .../user/display/moons/allmoons.blade.php | 18 +++++++++--------- .../display/moons/availablemoons.blade.php | 2 +- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/app/Http/Controllers/MiningTaxes/MiningTaxesController.php b/app/Http/Controllers/MiningTaxes/MiningTaxesController.php index 292478260..2b584b438 100644 --- a/app/Http/Controllers/MiningTaxes/MiningTaxesController.php +++ b/app/Http/Controllers/MiningTaxes/MiningTaxesController.php @@ -103,7 +103,8 @@ class MiningTaxesController extends Controller if($moon->moon_type != 'R32' || $moon->moon_type != 'R64') { $moons->push([ - 'system' => $moon->name, + 'system' => $moon->system_name, + 'moon_name' => $moon->name, 'ores' => $ores, ]); } @@ -192,7 +193,8 @@ class MiningTaxesController extends Controller ])->get(['ore_name', 'quantity'])->toArray(); $moons->push([ - 'system' => $moon->name, + 'system' => $moon->system_name, + 'moon_name' => $moon->name, 'ores' => $ores, ]); } diff --git a/resources/views/miningtax/user/display/moons/allmoons.blade.php b/resources/views/miningtax/user/display/moons/allmoons.blade.php index 7b8b1cafd..5a6c5a26f 100644 --- a/resources/views/miningtax/user/display/moons/allmoons.blade.php +++ b/resources/views/miningtax/user/display/moons/allmoons.blade.php @@ -34,7 +34,7 @@ @foreach($moons as $moon) @if($moon['system'] == $system) - {{ $system }} + {{ $moon['moon_name'] }} @if(isset($moon['ores'][0])) @if(in_array($moon['ores'][0]['ore_name'], $r4Goo)) {{ $moon['ores'][0]['ore_name'] }} @@ -57,8 +57,8 @@ {{ number_format(($moon['ores'][0]['quantity'] * 100.00), 2, ".", ",") }}% @endif @else - - + + @endif @if(isset($moon['ores'][1])) @if(in_array($moon['ores'][1]['ore_name'], $r4Goo)) @@ -82,8 +82,8 @@ {{ number_format(($moon['ores'][1]['quantity'] * 100.00), 2, ".", ",") }}% @endif @else - - + + @endif @if(isset($moon['ores'][2])) @if(in_array($moon['ores'][2]['ore_name'], $r4Goo)) @@ -107,8 +107,8 @@ {{ number_format(($moon['ores'][2]['quantity'] * 100.00), 2, ".", ",") }}% @endif @else - - + + @endif @if(isset($moon['ores'][3])) @if(in_array($moon['ores'][3]['ore_name'], $r4Goo)) @@ -132,8 +132,8 @@ {{ number_format(($moon['ores'][3]['quantity'] * 100.00), 2, ".", ",") }}% @endif @else - - + + @endif @endif diff --git a/resources/views/miningtax/user/display/moons/availablemoons.blade.php b/resources/views/miningtax/user/display/moons/availablemoons.blade.php index 0ae37fa6e..9be801b70 100644 --- a/resources/views/miningtax/user/display/moons/availablemoons.blade.php +++ b/resources/views/miningtax/user/display/moons/availablemoons.blade.php @@ -34,7 +34,7 @@ @foreach($moons as $moon) @if($moon['system'] == $system) - {{ $system }} + {{ $moon['moon_name'] }} @if(isset($moon['ores'][0])) @if(in_array($moon['ores'][0]['ore_name'], $r4Goo)) {{ $moon['ores'][0]['ore_name'] }}