Planned workouts are shown in grey and when you complete it will change colour:
You can manually mark workouts as completed in your calendar, but a smarter way is to connect your device or training software to your TrainingPeaks account. That way, any completed activity will automatically sync to your TrainingPeaks calendar.
All devices and training software connect to TrainingPeaks in different ways. To find out more please refer to the individual articles for the most popular devices:
You can refer to this article for TrainingPeaks complete list of compatible devices.