$timesheet->getRouteKey(), 'key' => [ 'public' => $timesheet->getPublicKey(), 'route' => $timesheet->getRouteKey(), ], 'id' => $timesheet->id, 'task_id' => $timesheet->task_id, 'user_id' => $timesheet->user_id, 'project_id' => $timesheet->project_id, 'date' => $timesheet->date, 'time_start' => $timesheet->time_start, 'time_end' => $timesheet->time_end, 'duration' => $timesheet->duration, 'percentage' => $timesheet->percentage, 'description' => $timesheet->description, 'created_at' => $timesheet->created_at, 'deleted_at' => $timesheet->deleted_at, 'updated_at' => $timesheet->updated_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), ]; } }