update block tebus 2 hari sebelum lelong
This commit is contained in:
@@ -577,7 +577,7 @@ class LelongController extends Controller
|
|||||||
if($lelong)
|
if($lelong)
|
||||||
{
|
{
|
||||||
$date_lelong = new Carbon($lelong['t_lelong']);
|
$date_lelong = new Carbon($lelong['t_lelong']);
|
||||||
|
|
||||||
if($lelong['t_lelong'] >= $current->toDateString())
|
if($lelong['t_lelong'] >= $current->toDateString())
|
||||||
{
|
{
|
||||||
$diff = $date_lelong->diffInDays($current);
|
$diff = $date_lelong->diffInDays($current);
|
||||||
@@ -586,7 +586,7 @@ class LelongController extends Controller
|
|||||||
$diff = -$diff;
|
$diff = -$diff;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($diff <= 0)
|
if($diff <= 2)
|
||||||
{
|
{
|
||||||
return response(1);
|
return response(1);
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user