$timesheet->getRouteKey(), 'key' => [ 'public' => $timesheet->getPublicKey(), 'route' => $timesheet->getRouteKey(), ], 'id' => $timesheet->id, 'user_id' => $timesheet->user_id, 'user_type' => $timesheet->user_type, 'candidate_id' => $timesheet->candidate_id, 'client_id' => $timesheet->client_id, 'unit_id' => $timesheet->unit_id, 'job_id' => $timesheet->job_id, 'status' => $timesheet->status, 'shift_date' => $timesheet->shift_date, 'start_time' => $timesheet->start_time, 'end_time' => $timesheet->end_time, 'break' => $timesheet->break, 'total_hours' => $timesheet->total_hours, 'total_cost' => $timesheet->total_cost, 'details' => $timesheet->details, 'created_at' => $timesheet->created_at, 'updated_at' => $timesheet->updated_at, 'deleted_at' => $timesheet->deleted_at, 'url' => [ 'public' => trans_url('timesheet/'.$timesheet->getPublicKey()), 'user' => guard_url('timesheet/timesheet/'.$timesheet->getRouteKey()), ], 'status' => trans('app.'.$timesheet->status), 'created_at' => format_date($timesheet->created_at), 'updated_at' => format_date($timesheet->updated_at), ]; } }