From 2178ac56b2084b0155e2050862ec904e3d1b5f7e Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Tue, 11 Dec 2018 23:30:47 -0600 Subject: [PATCH] display taxes history --- app/Http/Controllers/StructureController.php | 2 +- resources/views/structures/taxhistory.blade.php | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/StructureController.php b/app/Http/Controllers/StructureController.php index 9dac1cd8e..4cd15986c 100644 --- a/app/Http/Controllers/StructureController.php +++ b/app/Http/Controllers/StructureController.php @@ -73,7 +73,7 @@ class StructureController extends Controller 'thisMonthStart' => $dates['ThisMonthStart']->toFormattedDateString(), 'lastMonthStart' => $dates['LastMonthStart']->toFormattedDateString(), ]; - dd($totalTaxes); + return view('structures.taxes')->with('totalTaxes', $totalTaxes); } diff --git a/resources/views/structures/taxhistory.blade.php b/resources/views/structures/taxhistory.blade.php index 3aa780126..fc6779a69 100644 --- a/resources/views/structures/taxhistory.blade.php +++ b/resources/views/structures/taxhistory.blade.php @@ -16,8 +16,7 @@ Refinery Revenue Minus Fuel Cost - {{ dd($totalTaxes) }} - @foreach($i = 0; $i < 12; $i++) + @for($i = 0; $i < 12; $i++) {{ $totalTaxes[$i]['start'] }} {{ $totalTaxes[$i]['MarketTax'] }} @@ -25,7 +24,7 @@ {{ $totalTaxes[$i]['RefineryTax'] }} {{ $totalTaxes[$i]['RefineryRevenue'] }} - @endforeach + @endfor