|
|
@ -54,8 +54,8 @@ class MapMonitoringController extends Controller |
|
|
|
$waypoint = DB::table('m_waypoint')->select('lat', 'lon', 'wptime')->where('user_id', $presensi->user_id)->orderBy('wptime', 'DESC')->first(); |
|
|
|
$waypoint = DB::table('m_waypoint')->select('lat', 'lon', 'wptime')->where('user_id', $presensi->user_id)->orderBy('wptime', 'DESC')->first(); |
|
|
|
$tmp[] = array( |
|
|
|
$tmp[] = array( |
|
|
|
'user_id' => $presensi->user_id, |
|
|
|
'user_id' => $presensi->user_id, |
|
|
|
'wp_lat' => isset($waypoint) ? $waypoint->lat : '-', |
|
|
|
'wp_lat' => isset($waypoint) ? $waypoint->lat : null, |
|
|
|
'wp_lon' => isset($waypoint) ? $waypoint->lon : '-', |
|
|
|
'wp_lon' => isset($waypoint) ? $waypoint->lon : null, |
|
|
|
'wp_time' => isset($waypoint) ? $waypoint->wptime : '-', |
|
|
|
'wp_time' => isset($waypoint) ? $waypoint->wptime : '-', |
|
|
|
'clock_in' => $presensi->clock_in, |
|
|
|
'clock_in' => $presensi->clock_in, |
|
|
|
'clock_out' => $presensi->clock_out, |
|
|
|
'clock_out' => $presensi->clock_out, |
|
|
|