This commit is contained in:
nguentrungthat 2025-02-14 09:42:08 +07:00
parent 5cdfaafe03
commit 49b681566d
1 changed files with 3 additions and 3 deletions

View File

@ -266,11 +266,11 @@ class TrackingController extends Controller
->where('status', 'check in'); ->where('status', 'check in');
if ($startDate && $endDate) { if ($startDate && $endDate) {
$trackingData->whereBetween('updated_at', [$startDate, $endDate . ' 23:59:59']); $trackingData->whereBetween('created_at', [$startDate, $endDate . ' 23:59:59']);
} elseif ($startDate) { } elseif ($startDate) {
$trackingData->where('updated_at', '>=', $startDate); $trackingData->where('created_at', '>=', $startDate);
} elseif ($endDate) { } elseif ($endDate) {
$trackingData->where('updated_at', '<=', $endDate . ' 23:59:59'); $trackingData->where('created_at', '<=', $endDate . ' 23:59:59');
} }
$onTimeMorning = 0; $onTimeMorning = 0;