finances page

This commit is contained in:
2018-11-28 21:13:26 -06:00
parent cf34a52f87
commit 17f1c52782
2 changed files with 17 additions and 6 deletions
+4 -4
View File
@@ -92,10 +92,10 @@ class FinancesController extends Controller
//Create the array to pass to the blade view
$totalTaxes = [
'thisMonthReprocessing' => $monthTaxesReprocessing,
'lastMonthReprocessing' => $lastTaxesReprocessing,
'thisMonthMarket' => $monthTaxesMarket,
'lastMonthMarket' => $lastTaxesMarket,
'thisMonthReprocessing' => number_format($monthTaxesReprocessing, 2, '.', ','),
'lastMonthReprocessing' => number_format($lastTaxesReprocessing, 2, '.', ','),
'thisMonthMarket' => number_format($monthTaxesMarket, 2, '.', ','),
'lastMonthMarket' => number_format($lastTaxesMarket, 2, '.', ','),
];
return view('finances.taxes')->with('totalTaxes', $totalTaxes);
+13 -2
View File
@@ -9,10 +9,21 @@
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Month</th>
<th>Reprocessing Tax</th>
<th>Market Tax</th>
</thead>
<tbody>
<tr>
<td>This Month</td>
<td>{{ $totalTaxes['thisMonthReprocessing'] }}</td>
<td>{{ $totalTaxes['thisMonthMarket'] }}
</tr>
<tr>
<td>Last Month</td>
<td>{{ $totalTaxes['lastMonthReprocessing'] }}</td>
<td>{{ $totalTaxes['lastMonthMarket'] }}</td>
</tr>
</tbody>
</table>
</div>