$task->getRouteKey(), 'key' => [ 'public' => $task->getPublicKey(), 'route' => $task->getRouteKey(), ], 'name' => $task->name, 'slug' => $task->slug, 'parent_id' => $task->parent_id, 'customer_id' => $task->customer_id, 'priority' => $task->priority, 'assigned_user' => $task->assigned_user, 'date_start' => $task->date_start, 'date_due' => $task->date_due, 'description' => $task->description, 'documents' => $task->documents, 'user_id' => $task->user_id, 'user_type' => $task->user_type, 'deleted_at' => $task->deleted_at, 'url' => [ 'public' => trans_url('task/'.$task->getPublicKey()), 'user' => guard_url('task/task/'.$task->getRouteKey()), ], 'status' => trans('app.'.$task->status), 'created_at' => format_date($task->created_at), 'updated_at' => format_date($task->updated_at), ]; } }