$task->getRouteKey(), 'key' => [ 'public' => $task->getPublicKey(), 'route' => $task->getRouteKey(), ], 'id' => $task->id, 'project_id' => $task->project_id, 'column_id' => $task->column_id, 'assigned_to' => $task->assigned_to, 'created_by' => $task->created_by, 'title' => $task->title, 'priority' => $task->priority, 'colors' => $task->colors, 'order' => $task->order, 'weightage' => $task->weightage, 'tags' => $task->tags, 'reference' => $task->reference, 'documents' => $task->documents, 'screenshot' => $task->screenshot, 'files' => $task->files, 'links' => $task->links, 'complexity' => $task->complexity, 'start_time' => $task->start_time, 'time_taken' => $task->time_taken, 'duration' => $task->duration, 'status' => $task->status, 'created_at' => $task->created_at, 'deleted_at' => $task->deleted_at, 'updated_at' => $task->updated_at, 'url' => [ 'public' => trans_url('timesheet/'.$task->getPublicKey()), 'user' => guard_url('timesheet/task/'.$task->getRouteKey()), ], 'status' => trans('app.'.$task->status), 'created_at' => format_date($task->created_at), 'updated_at' => format_date($task->updated_at), ]; } }