|
|
|
@ -24,7 +24,7 @@ class MapMonitoring extends Model
|
|
|
|
|
{ |
|
|
|
|
$users = DB::table($this->table) |
|
|
|
|
->select('id', 'user_id', 'clock_in', 'clock_out', 'clock_in_lat', 'clock_in_lng', 'clock_out_lat', 'clock_out_lng', 'clock_in_loc', 'clock_out_loc', 'clock_in_boundary', 'clock_out_boundary') |
|
|
|
|
->whereBetween('created_at', [$payload->timeFrom, $payload->timeTo]) |
|
|
|
|
->whereBetween('created_at', [$payload->time_from, $payload->time_to]) |
|
|
|
|
->orderBy('created_at', 'desc') |
|
|
|
|
->get(); |
|
|
|
|
|
|
|
|
|