Add email to company info block

This commit is contained in:
Ryan Prather 2024-11-30 19:58:13 -05:00
parent b5f38203f0
commit 3dfd8712cf

View File

@ -203,11 +203,13 @@ class Company
public function __toString(): string
{
$url = ($this->url ? "<br/><a href='$this->url' target='_blank'>$this->url</a>" : '');
$email = ($this->email ? "<br/><a href='mailto:$this->email'>$this->email</a>" : '');
return <<<"HTML"
$this->name<br/>
$this->address<br/>
$this->city, $this->state $this->zip<br/>
<a href='tel:{$this->phone}'>$this->phone</a>
$email
$url
HTML;
}