}
public function getAllTreeInfosAttribute()
+ {
+ $res = $this->getBasicTreeInfosAttribute();
+
+ $invoicable = Permissions::getInvoicableCompany($this->company);
+ if ($invoicable != $this->company) {
+ $res .= '<br>(€ : ' . Permissions::getCompanyName($invoicable) . ')';
+ }
+ return $res;
+ }
+
+ public function getBasicTreeInfosAttribute()
{
$name = $this->name;
$res = '';
$res .= $name . '<br>';
}
$res .= '<em> ' . $this->companyName . '</em>';
-
- $invoicable = Permissions::getInvoicableCompany($this->company);
- if ($invoicable != $this->company) {
- $res .= '<br>(€ : ' . Permissions::getCompanyName($invoicable) . ')';
- }
- //$res .= '<br><i class="las la-user-shield"></i> ' . $this->getAdministratorFirstname();
return $res;
}