payment = $payment; $this->contact = $contact; } /** * Builds the correct template to send. * @return void */ public function run() { $this->payment->client->contacts->each(function ($contact) { if ($contact->send_email && $contact->email) { EmailPayment::dispatchNow($this->payment, $this->payment->company, $contact); } }); } }