Merge remote-tracking branch 'origin/staging' into origin/production
This commit is contained in:
@@ -36,9 +36,9 @@ class LivechatController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($endDate) {
|
if ($endDate) {
|
||||||
|
$endDate = date('Y-m-d', strtotime($endDate . ' +1 day'));
|
||||||
$livechat = $livechat->where('dCreateOn', '<', $endDate);
|
$livechat = $livechat->where('dCreateOn', '<', $endDate);
|
||||||
}
|
}
|
||||||
|
|
||||||
$livechat = $livechat->latest()->paginate(15);
|
$livechat = $livechat->latest()->paginate(15);
|
||||||
|
|
||||||
return response()->json(Helper::paginateResources(LivechatResource::collection($livechat)));
|
return response()->json(Helper::paginateResources(LivechatResource::collection($livechat)));
|
||||||
@@ -71,6 +71,7 @@ class LivechatController extends Controller
|
|||||||
$query->where('dCreateOn', '>=', $startDate);
|
$query->where('dCreateOn', '>=', $startDate);
|
||||||
}
|
}
|
||||||
if ($endDate) {
|
if ($endDate) {
|
||||||
|
$endDate = date('Y-m-d', strtotime($endDate . ' +1 day'));
|
||||||
$query->where('dCreateOn', '<', $endDate);
|
$query->where('dCreateOn', '<', $endDate);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user