modifed blade for unpaid invoices on admin dashboard
This commit is contained in:
@@ -177,12 +177,11 @@ class MiningTaxesController extends Controller
|
|||||||
|
|
||||||
foreach($extractions as $extraction) {
|
foreach($extractions as $extraction) {
|
||||||
foreach($structures as $structure) {
|
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();
|
$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();
|
$extractionDate = Carbon::createFromFormat('Y-m-d H:i:s', $esiHelper->DecodeDate($extraction->chunk_arrival_time))->toDateString();
|
||||||
var_dump($tempStructureDate);
|
//Check if the dates are equal then increase the total by 1
|
||||||
var_dump($extractionDate);
|
if($tempStructureDate->equalTo($extractionDate)) {
|
||||||
dd();
|
|
||||||
if($tempStructureDate == $extractionDate) {
|
|
||||||
$structure['total'] = $structure['total'] + 1;
|
$structure['total'] = $structure['total'] + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user