public function date()
{
$intereset=DB::table('mirhusen')->get()->toArray();
$lastdate = end($intereset);
$datetime1 = new DateTime($lastdate->date);
$datetime2 = new DateTime(date('Y-m-d'));
$interval = $datetime1->diff($datetime2);
$totalintrest = $interval->d * $lastdate->interest;
print_r($lastdate->date);exit;
return ($intereset->date);
}
0 Comments