I have a mailable class that sends an email to someone that makes a contract. Now I'm trying to style the mail but... I can't quite seem to call the variable that I pass in the mailable class return.

I've tried passing it to the view in the mailable class and I've tried calling it but in the mail it doesn't show up.

this is my mailable class:

```
public function build()
    {
        $data = array(
            'comapny' => $this->data['company'],
            'file' => $this->data['file'],
            'subject' => $this->data['subject'],
            'email' => $this->data['email']
        );
        foreach($data['email'] as $mail)
        return $this->view('mails.contract')->with('data' , $data['company'])->to($mail)->subject($data['subject'])->attach($data['file'])->withSwiftMeassage(function ($message){
            $swiftMessage = $message->getSwiftMessage();
            $headers = $swiftMessage->getHeaders();
            $headers->addTextHeader('From', 'example - contract <example-email@gmail.com>');
            $headers->addTextHeader('Reply-To', 'example-email@gmail.com');
            $headers->addTextHeader('X-Mailer:', 'PHP/' . phpversion());
        });
    }
}

```

the view i need to call the data to:

```
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <p><?php echo $data ?></p>
</body>
</html>

```

any help is appreciated