<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
use App\Invoice;

class ThankYouPayment extends Mailable
{
    use Queueable, SerializesModels;
	
	public $invoice;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct(Invoice $invoice)
    {
		
        $this->invoice = $invoice;
		
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->subject('Invoice Payment')->from(env('MAIL_FROM_ADDRESS'), 'Routely')->view('emails.thank_you_payment');
    }
}
