$this->name, 'type' => __('outlet.outlet'), ]); $link = ''; $link .= $this->name; $link .= ''; return $link; } public function creator() { return $this->belongsTo(User::class); } public function getCoordinateAttribute() { if ($this->latitude && $this->longitude) { return $this->latitude.', '.$this->longitude; } } public function getMapPopupContentAttribute() { $mapPopupContent = ''; $mapPopupContent .= '
'.__('outlet.name').':
'.$this->name.'
'; $mapPopupContent .= '
'.__('outlet.coordinate').':
'.$this->coordinate.'
'; return $mapPopupContent; } }