mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 21:21:09 -04:00 
			
		
		
		
	Fix Invoice/Estimate template issues and Add Payment Receipt, Custom Payment Modes and Item units
This commit is contained in:
		
				
					committed by
					
						 Mohit Panjwani
						Mohit Panjwani
					
				
			
			
				
	
			
			
			
						parent
						
							56a955befd
						
					
				
				
					commit
					4c33a5d88c
				
			
							
								
								
									
										38
									
								
								app/Mail/TestMail.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								app/Mail/TestMail.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,38 @@ | ||||
| <?php | ||||
| namespace Crater\Mail; | ||||
|  | ||||
| use Illuminate\Bus\Queueable; | ||||
| use Illuminate\Mail\Mailable; | ||||
| use Illuminate\Queue\SerializesModels; | ||||
| use Illuminate\Contracts\Queue\ShouldQueue; | ||||
|  | ||||
| class TestMail extends Mailable | ||||
| { | ||||
|     use Queueable, SerializesModels; | ||||
|     public $subject; | ||||
|     public $message; | ||||
|  | ||||
|     /** | ||||
|      * Create a new message instance. | ||||
|      * | ||||
|      * @param $subject | ||||
|      * @param $message | ||||
|      */ | ||||
|     public function __construct($subject, $message) | ||||
|     { | ||||
|         $this->subject = $subject; | ||||
|         $this->message = $message; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Build the message. | ||||
|      * | ||||
|      * @return $this | ||||
|      */ | ||||
|     public function build() | ||||
|     { | ||||
|         return $this->subject($this->subject)->markdown('emails.test')->with([ | ||||
|             'my_message' => $this->message | ||||
|         ]); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user