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

@ -127,13 +127,6 @@ class PresenceController extends Controller
'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;
$date = date_create($request->time); $date = date_create($request->time);
@ -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,

Loading…
Cancel
Save