*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'server_id' => $this->site->server_id, 'site_id' => $this->site_id, 'is_active' => $this->is_active, 'type' => $this->type, 'status' => $this->status, 'log' => $this->log_id ? ServerLogResource::make($this->log) : null, 'status_color' => Ssl::$statusColors[$this->status] ?? 'secondary', 'expires_at' => $this->expires_at, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, ]; } }