diff --git a/app/Http/Controllers/FinancesController.php b/app/Http/Controllers/FinancesController.php index a1a3a6e83..0517e9cd2 100644 --- a/app/Http/Controllers/FinancesController.php +++ b/app/Http/Controllers/FinancesController.php @@ -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); diff --git a/resources/views/finances/taxes.blade.php b/resources/views/finances/taxes.blade.php index f7d34b4d0..0b4a193e6 100644 --- a/resources/views/finances/taxes.blade.php +++ b/resources/views/finances/taxes.blade.php @@ -9,10 +9,21 @@
| Month | +Reprocessing Tax | +Market Tax | - +
|---|---|---|
| This Month | +{{ $totalTaxes['thisMonthReprocessing'] }} | +{{ $totalTaxes['thisMonthMarket'] }} + |
| Last Month | +{{ $totalTaxes['lastMonthReprocessing'] }} | +{{ $totalTaxes['lastMonthMarket'] }} | +