entity->in_out == 0 ? format_money(-$this->entity->amount) : format_money($this->entity->amount); } public function projectLink() { return link_to_route('projects.show', $this->project->name, [$this->project_id]); } public function projectPaymentsLink() { return link_to_route('projects.payments', trans('project.payments'), [$this->project_id]); } public function type() { return paymentTypes($this->entity->type_id); } }