Space space space enter
This commit is contained in:
parent
46173d7bfb
commit
d2705cb838
|
@ -24,12 +24,15 @@ class HomeController extends Controller
|
|||
case ($days >= 15):
|
||||
return $this::TIME_LEFT_BG_SUCCESS;
|
||||
break;
|
||||
|
||||
case ($days >= 8 && $days <= 14):
|
||||
return $this::TIME_LEFT_BG_WARNING;
|
||||
break;
|
||||
|
||||
case ($days <= 7):
|
||||
return $this::TIME_LEFT_BG_DANGER;
|
||||
break;
|
||||
|
||||
default:
|
||||
return $this::TIME_LEFT_BG_WARNING;
|
||||
}
|
||||
|
@ -59,9 +62,11 @@ class HomeController extends Controller
|
|||
case ($days < 1):
|
||||
return "hours";
|
||||
break;
|
||||
|
||||
case ($days > 1):
|
||||
return "days";
|
||||
break;
|
||||
|
||||
default:
|
||||
return "days";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue