|
|
|
|
@ -168,8 +168,8 @@ class StatisticsController extends CommonController
|
|
|
|
|
public function byDuration(Request $request)
|
|
|
|
|
{
|
|
|
|
|
$duration = $this->_getDuration();
|
|
|
|
|
$from_date = $duration["from_date"];
|
|
|
|
|
$to_date = $duration["to_date"];
|
|
|
|
|
$from_date = $duration[0];
|
|
|
|
|
$to_date = $duration[1];
|
|
|
|
|
$from_date_timestamp = strtotime($from_date);
|
|
|
|
|
$to_date_timestamp = strtotime($to_date) + 86400 - 1;
|
|
|
|
|
if (Carbon::parse($from_date)->diffInDays($to_date) >= 31) {
|
|
|
|
|
|