From bca5179cc3713b13ae1e81c62eab9a0692dec869 Mon Sep 17 00:00:00 2001 From: Christopher Mancuso Date: Sun, 18 Jul 2021 00:32:34 -0500 Subject: [PATCH] added blade for showing rented moons --- .../MiningTaxes/MiningTaxesController.php | 2 +- .../user/display/rentedmoons.blade.php | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 resources/views/miningtax/user/display/rentedmoons.blade.php diff --git a/app/Http/Controllers/MiningTaxes/MiningTaxesController.php b/app/Http/Controllers/MiningTaxes/MiningTaxesController.php index d2bd62c29..67d5a2815 100644 --- a/app/Http/Controllers/MiningTaxes/MiningTaxesController.php +++ b/app/Http/Controllers/MiningTaxes/MiningTaxesController.php @@ -67,7 +67,7 @@ class MiningTaxesController extends Controller //Get the ores for the moon $ores = AllianceMoonOre::where([ 'moon_id' => $tempMoon->moon_id, - ])->get(); + ])->get()->toArray(); $moons->push([ 'moon_id' => $tempMoon->moon_id, diff --git a/resources/views/miningtax/user/display/rentedmoons.blade.php b/resources/views/miningtax/user/display/rentedmoons.blade.php new file mode 100644 index 000000000..15f5475c5 --- /dev/null +++ b/resources/views/miningtax/user/display/rentedmoons.blade.php @@ -0,0 +1,41 @@ +@extends('layouts.user.dashb4') +@section('content') +
+
+
+
+

Moons Currently Rented

+
+
+ @if(sizeof($moons) == 0) +

No moons currently rented by you or your corporation.

+ @else + + + + + + + + + + @foreach($moons as $moon) + + + + + + + + @endforeach + +
SystemMoon NameWorthRentalOres
{{ $moon['system'] }}{{ $moon['moon_name'] }}{{ number_format($moon['worth_amount'], 2, ".", ",") }}{{ number_format($moon['rental_amount'], 2, ".", ",") }} + @foreach($moon['ores'] as $ore) + {{ $ore['ore_name'] }} : {{ number_format($ore['quantity'], 0, ".", ",") }}
+ @endforeach +
+ @endif +
+
+
+@endsection \ No newline at end of file