$this->id, 'event_id' => $this->event_id, 'name' => $this->name, 'person_type' => $this->person_type, 'date' => $this->date->toDateString(), 'start_time' => Carbon::parse($this->start_time)->format('H:i'), 'end_time' => Carbon::parse($this->end_time)->format('H:i'), 'duration_hours' => $this->duration_hours, 'source' => $this->resource->getAttribute('source'), 'event_name' => $this->whenLoaded('event', fn () => $this->event->name), 'created_at' => $this->created_at->toIso8601String(), ]; } }