$this->name, 'type' => __('outlet.outlet'), ]); $link = ''; $link .= $this->name; $link .= ''; return $link; } /** * Outlet belongs to User model relation. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function creator() { return $this->belongsTo(User::class); } /** * Get outlet coordinate attribute. * * @return string|null */ public function getCoordinateAttribute() { if ($this->latitude && $this->longitude) { return $this->latitude.', '.$this->longitude; } } /** * Get outlet map_popup_content attribute. * * @return string */ public function getMapPopupContentAttribute() { $mapPopupContent = ''; $mapPopupContent .= '