return $str; } public function getCellular() { $str = ''; if ($this->work_phone) { $str .= '<i class="fa fa-phone" style="width: 20px"></i>' . Utils::formatPhoneNumber($this->website); } return $str; } public function getDateCreated() { if ($this->created_at == '0000-00-00 00:00:00') { return '---'; } else { return $this->created_at->format('m/d/y h:i a'); } } } /* Client::created(function($client) { Activity::createClient($client); }); */ Client::updating(function ($client) { Activity::updateClient($client); }); Client::deleting(function ($client) { Activity::archiveClient($client); });