From 2d9a3ce44845c9a27ff77648618eb46434356e1d Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 8 Mar 2021 21:39:56 +0900 Subject: [PATCH] modifed blade for unpaid invoices on admin dashboard --- app/Http/Controllers/MiningTaxes/MiningTaxesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/MiningTaxes/MiningTaxesController.php b/app/Http/Controllers/MiningTaxes/MiningTaxesController.php index 2fd33e7fd..78361a770 100644 --- a/app/Http/Controllers/MiningTaxes/MiningTaxesController.php +++ b/app/Http/Controllers/MiningTaxes/MiningTaxesController.php @@ -178,7 +178,7 @@ class MiningTaxesController extends Controller foreach($extractions as $extraction) { for($i = 0; $i < sizeof($structures); $i++) { //Create the dates in a carbon object, then only get the Y-m-d to compare. - $tempStructureDate = Carbon::createFromFormat('Y-m-d H:i:s', $structure['date'])->toDateString(); + $tempStructureDate = Carbon::createFromFormat('Y-m-d H:i:s', $structures[$i]['date'])->toDateString(); $extractionDate = Carbon::createFromFormat('Y-m-d H:i:s', $esiHelper->DecodeDate($extraction->chunk_arrival_time))->toDateString(); //check if the dates are equal then increase the total by 1 if($tempStructureDate == $extractionDate) {