Browse Source

Add formatting

pull/3/head
Wahyu Ramadhan 1 year ago
parent
commit
a01f1ca25e
  1. 21
      app/Http/Controllers/MapMonitoringController.php

21
app/Http/Controllers/MapMonitoringController.php

@ -27,9 +27,24 @@ class MapMonitoringController extends Controller
$tmp = [];
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',
'tcio.clock_out_lat', 'tcio.clock_out_lng', 'tcio.clock_in_loc', 'tcio.clock_out_loc', 'tcio.clock_in_boundary',
'tcio.clock_out_boundary', 'mu.username', 'tcio.date_presence', 'tcio.created_at')
->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',
'tcio.clock_out_lat',
'tcio.clock_out_lng',
'tcio.clock_in_loc',
'tcio.clock_out_loc',
'tcio.clock_in_boundary',
'tcio.clock_out_boundary',
'mu.username',
'tcio.date_presence',
'tcio.created_at'
)
->join('m_users as mu', 'mu.id', '=', 'tcio.user_id')
->where('mu.id', $key->user_id)
->orderBy('tcio.id', 'DESC')

Loading…
Cancel
Save