Merge pull request 'Update' (#106) from that-fe into master
Reviewed-on: #106
This commit is contained in:
commit
471cc0eb2a
|
|
@ -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('time_string', [$startDate, $endDate . ' 23:59:59']);
|
||||||
} elseif ($startDate) {
|
} elseif ($startDate) {
|
||||||
$trackingData->where('updated_at', '>=', $startDate);
|
$trackingData->where('time_string', '>=', $startDate);
|
||||||
} elseif ($endDate) {
|
} elseif ($endDate) {
|
||||||
$trackingData->where('updated_at', '<=', $endDate . ' 23:59:59');
|
$trackingData->where('time_string', '<=', $endDate . ' 23:59:59');
|
||||||
}
|
}
|
||||||
|
|
||||||
$onTimeMorning = 0;
|
$onTimeMorning = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue