|
|
@ -126,13 +126,6 @@ class PresenceController extends Controller |
|
|
|
$this->validate($request, [ |
|
|
|
$this->validate($request, [ |
|
|
|
'user_id' => 'required' |
|
|
|
'user_id' => 'required' |
|
|
|
]); |
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
$dataFormK3 = array( |
|
|
|
|
|
|
|
"user_id" => $request->user_id, |
|
|
|
|
|
|
|
"proyek_id" => $request->report_k3['proyek_id'], |
|
|
|
|
|
|
|
"report_date" => $request->time, |
|
|
|
|
|
|
|
"description" => $request->report_k3['description'] |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$checkLocation = $this->checkLocation($request); |
|
|
|
$checkLocation = $this->checkLocation($request); |
|
|
|
$statusBoundary = false; |
|
|
|
$statusBoundary = false; |
|
|
@ -201,6 +194,13 @@ class PresenceController extends Controller |
|
|
|
$onlyDate = date_format($date,"Y-m-d"); |
|
|
|
$onlyDate = date_format($date,"Y-m-d"); |
|
|
|
$clock_in_loc = $this->getLoc($request->clock_in_out['clock_in_lat'], $request->clock_in_out['clock_in_lng'])->display_name; |
|
|
|
$clock_in_loc = $this->getLoc($request->clock_in_out['clock_in_lat'], $request->clock_in_out['clock_in_lng'])->display_name; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$dataFormK3 = array( |
|
|
|
|
|
|
|
"user_id" => $request->user_id, |
|
|
|
|
|
|
|
"proyek_id" => $request->report_k3['proyek_id'], |
|
|
|
|
|
|
|
"report_date" => $request->time, |
|
|
|
|
|
|
|
"description" => $request->report_k3['description'] |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$dataFormPresence = array( |
|
|
|
$dataFormPresence = array( |
|
|
|
'user_id' => $request->user_id, |
|
|
|
'user_id' => $request->user_id, |
|
|
|
'clock_in' => $request->time, |
|
|
|
'clock_in' => $request->time, |
|
|
|