$this->id, 'name' => $this->name, 'type' => $this->type, 'year' => $this->year, 'quarter' => $this->quarter, 'lowest_price' => $this->lowest_price, 'highest_price' => $this->highest_price, 'created_by' => AdminUserResource::make($this->whenLoaded('createdBy')), 'updated_by' => AdminUserResource::make($this->whenLoaded('updatedBy')), 'created_at' => $this->created_at->unix(), 'updated_at' => $this->updated_at->unix(), ]; } }