update range report livechat

This commit is contained in:
2023-09-14 13:30:35 +07:00
parent e8fb41a57d
commit c0322eac3b

View File

@@ -36,7 +36,7 @@ class LivechatController extends Controller
}
if ($endDate) {
$livechat = $livechat->where('dCreateOn', '<=', $endDate);
$livechat = $livechat->where('dCreateOn', '<', $endDate);
}
$livechat = $livechat->latest()->paginate(15);
@@ -71,7 +71,7 @@ class LivechatController extends Controller
$query->where('dCreateOn', '>=', $startDate);
}
if ($endDate) {
$query->where('dCreateOn', '<=', $endDate);
$query->where('dCreateOn', '<', $endDate);
}
})
->orderBy('nID', 'desc')