|
|
@ -116,6 +116,7 @@ class PresenceController extends Controller |
|
|
|
->whereDate("ma.end_date", ">=", $params->clock_time) |
|
|
|
->whereDate("ma.end_date", ">=", $params->clock_time) |
|
|
|
->get(); |
|
|
|
->get(); |
|
|
|
$temp = []; |
|
|
|
$temp = []; |
|
|
|
|
|
|
|
if (count($geom) > 0) { |
|
|
|
foreach($geom as $dataGeom){ |
|
|
|
foreach($geom as $dataGeom){ |
|
|
|
$valGeom = json_decode($dataGeom->geom); |
|
|
|
$valGeom = json_decode($dataGeom->geom); |
|
|
|
if($params->type=="out"){ |
|
|
|
if($params->type=="out"){ |
|
|
@ -131,8 +132,7 @@ class PresenceController extends Controller |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return $temp; |
|
|
|
return $temp; |
|
|
|
} |
|
|
|
} |
|
|
|