From b8bd954b027ce22e545eddf1a83e647ab94a1550 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 8 Mar 2021 21:36:33 +0900 Subject: [PATCH] modifed blade for unpaid invoices on admin dashboard --- app/Http/Controllers/MiningTaxes/MiningTaxesController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/MiningTaxes/MiningTaxesController.php b/app/Http/Controllers/MiningTaxes/MiningTaxesController.php index 35c47ad3b..d419cf80c 100644 --- a/app/Http/Controllers/MiningTaxes/MiningTaxesController.php +++ b/app/Http/Controllers/MiningTaxes/MiningTaxesController.php @@ -178,8 +178,8 @@ class MiningTaxesController extends Controller foreach($extractions as $extraction) { foreach($structures as $structure) { //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(); - $extractionDate = Carbon::createFromFormat('Y-m-d H:i:s', $esiHelper->DecodeDate($extraction->chunk_arrival_time))->toDateString(); + $tempStructureDate = Carbon::createFromFormat('Y-m-d', $structure['date']); + $extractionDate = Carbon::createFromFormat('Y-m-d', $esiHelper->DecodeDate($extraction->chunk_arrival_time)); //Check if the dates are equal then increase the total by 1 if($tempStructureDate->equalTo($extractionDate)) { $structure['total'] = $structure['total'] + 1;