From 90c0accf58da46ce594131e9e121db5b6854cacb Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 8 Mar 2021 21:30:54 +0900 Subject: [PATCH] modifed blade for unpaid invoices on admin dashboard --- .../Controllers/MiningTaxes/MiningTaxesController.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/MiningTaxes/MiningTaxesController.php b/app/Http/Controllers/MiningTaxes/MiningTaxesController.php index 354743911..553922c01 100644 --- a/app/Http/Controllers/MiningTaxes/MiningTaxesController.php +++ b/app/Http/Controllers/MiningTaxes/MiningTaxesController.php @@ -177,7 +177,9 @@ class MiningTaxesController extends Controller foreach($extractions as $extraction) { foreach($structures as $structure) { - if($structure['date'] == $esiHelper->DecodeDate($extraction->chunk_arrival_time)) { + $tempStructureDate = Carbon::createFromFormat('Y-d-m H:m', $structure['date'])->toDateString(); + $extractionDate = Carbon::createFromFormat('Y-d-m H:m', $esiHelper->DecodeDate($extraction->chunk_arrival_time))->toDateString(); + if($tempStructureDate == $extractionDate) { $structure['total'] = $structure['total'] + 1; } } @@ -207,8 +209,8 @@ class MiningTaxesController extends Controller 'backgroundColor' => '#11FFFF', ], 'colorAxis' => [ - 'values' => [0, 100], - 'colors' => ['black', 'green'], + 'values' => [0, 10], + 'colors' => ['green', 'red'], ], ]);