672367 lte gte fxx3

This commit is contained in:
merdan 2022-12-07 14:45:47 +05:00
parent a7e2c8a049
commit 20ecd3edad
1 changed files with 6 additions and 3 deletions

View File

@ -118,9 +118,12 @@ public function getCanExtendLegalNumberAttribute()
Log::info($application);
return $application->state == 'approved' && $this->expires_at->gte(Carbon::now()->subMonths($month));
}
Log::info($this->expires_at->gte(Carbon::now()->subMonths($month)));
Log::info($this->expires_at);
Log::info(Carbon::now()->subMonths($month));
if($this->expires_at->gte(Carbon::now()->subMonths($month))){
Log::info($this->expires_at);
}else{
Log::info(Carbon::now()->subMonths($month));
}
return !empty($this->legalization_number) && !empty( $this->expires_at) && $this->expires_at->gte(Carbon::now()->subMonths($month));
}