Browse Source

update presence out

pull/3/head
ibnu 2 years ago
parent
commit
ce9784e32b
  1. 14
      app/Http/Controllers/PresenceController.php

14
app/Http/Controllers/PresenceController.php

@ -126,13 +126,6 @@ class PresenceController extends Controller
$this->validate($request, [
'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);
$statusBoundary = false;
@ -201,6 +194,13 @@ class PresenceController extends Controller
$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;
$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(
'user_id' => $request->user_id,
'clock_in' => $request->time,

Loading…
Cancel
Save