$this->uuid, 'trigger_method' => $this->trigger_method, 'status' => $this->status, 'program' => $this->program, 'started_at' => $this->started_at?->toIso8601String(), 'ended_at' => $this->ended_at?->toIso8601String(), 'duration_minutes' => $this->duration_minutes, 'cost' => (float) $this->cost, 'created_at' => $this->created_at?->toIso8601String(), 'machine' => new MachineResource($this->whenLoaded('machine')), 'booking' => new BookingResource($this->whenLoaded('booking')), 'user' => new UserResource($this->whenLoaded('user')), 'progress' => WashCycleProgress::forWash($this->resource), ]; } }