preventivo->numero, ); } public function content(): Content { return new Content( markdown: 'emails.preventivo-cliente', with: ['preventivo' => $this->preventivo], ); } /** @return array */ public function attachments(): array { $path = PreventivoPdf::pathAssoluto($this->preventivo); if (! $path) { return []; } return [ Attachment::fromPath($path) ->as('preventivo-'.$this->preventivo->numero.'.pdf') ->withMime('application/pdf'), ]; } }