finances page
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user