@ -22,24 +22,24 @@ class MapMonitoringController extends Controller
->select('user_id')
->select('user_id')
->whereIn('proyek_id', $request->project_id)
->whereIn('proyek_id', $request->project_id)
->distinct()
->distinct()
->get();
->pluck('user_id');
// get position hr in presensi
// get position hr in presensi
$tmp = [];
$presences = DB::table('t_clock_in_out as tcio')
foreach($hr_assign_project as $key){
$presensi = DB::table('t_clock_in_out as tcio')
->select('tcio.id as clock_in_out_id','mu.id as user_id', 'mu.name as fullname', 'tcio.clock_in', 'tcio.clock_out', 'tcio.clock_in_lat', 'tcio.clock_in_lng',
->select('tcio.id as clock_in_out_id','mu.id as user_id', 'mu.name as fullname', 'tcio.clock_in', 'tcio.clock_out', 'tcio.clock_in_lat', 'tcio.clock_in_lng',