mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-11-03 14:03:18 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			38 lines
		
	
	
		
			770 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			770 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
namespace Crater\Mail;
 | 
						|
 | 
						|
use Illuminate\Bus\Queueable;
 | 
						|
use Illuminate\Mail\Mailable;
 | 
						|
use Illuminate\Queue\SerializesModels;
 | 
						|
use Illuminate\Contracts\Queue\ShouldQueue;
 | 
						|
 | 
						|
class EstimatePdf extends Mailable
 | 
						|
{
 | 
						|
    use Queueable, SerializesModels;
 | 
						|
 | 
						|
    public $data = [];
 | 
						|
 | 
						|
    public $notificationEmail = '';
 | 
						|
 | 
						|
    /**
 | 
						|
     * Create a new message instance.
 | 
						|
     *
 | 
						|
     * @return void
 | 
						|
     */
 | 
						|
    public function __construct($data, $notificationEmail)
 | 
						|
    {
 | 
						|
        $this->data = $data;
 | 
						|
        $this->notificationEmail = $notificationEmail;
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Build the message.
 | 
						|
     *
 | 
						|
     * @return $this
 | 
						|
     */
 | 
						|
    public function build()
 | 
						|
    {
 | 
						|
        return $this->from($this->notificationEmail)->markdown('emails.send.estimate', ['data', $this->data]);
 | 
						|
    }
 | 
						|
}
 |