last changes since 6-2023
This commit is contained in:
parent
561c5875a7
commit
c1c613a4b9
53 changed files with 1351 additions and 93 deletions
|
|
@ -14,12 +14,15 @@ class MailSendFeWoInfo extends Mailable
|
|||
|
||||
protected $travel_user_booking_fewo;
|
||||
public $subject;
|
||||
public $files;
|
||||
|
||||
|
||||
public function __construct(TravelUserBookingFewo $travel_user_booking_fewo)
|
||||
public function __construct(TravelUserBookingFewo $travel_user_booking_fewo, $files = [])
|
||||
{
|
||||
$this->travel_user_booking_fewo = $travel_user_booking_fewo;
|
||||
$this->subject = __('STERN TOURS Anreiseinfo FEWO');
|
||||
$this->files = $files;
|
||||
|
||||
}
|
||||
|
||||
public function build()
|
||||
|
|
@ -40,18 +43,33 @@ class MailSendFeWoInfo extends Mailable
|
|||
'mine' => 'application/pdf',
|
||||
);
|
||||
|
||||
return $this->view('emails.info')
|
||||
$message = $this->view('emails.info')
|
||||
->with([
|
||||
'salutation' => $salutation,
|
||||
'copy1line' => $this->travel_user_booking_fewo->info_mail_text,
|
||||
'copy2line' => "",
|
||||
'greetings' => __('Best regards'),
|
||||
'model' => $this->travel_user_booking_fewo,
|
||||
])
|
||||
->attach($file1['path'], [
|
||||
'as' => $file1['name'],
|
||||
'mime' => $file1['mine'],
|
||||
])
|
||||
;
|
||||
]);
|
||||
$message->attach($file1['path'], [
|
||||
'as' => $file1['name'],
|
||||
'mime' => $file1['mine'],
|
||||
]);
|
||||
|
||||
foreach ($this->files as $file) {
|
||||
$message->attach($file->getPath(),[
|
||||
'as' => $file->original_name,
|
||||
'mime' => $file->mine,
|
||||
]); // attach each file
|
||||
}
|
||||
|
||||
return $message;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//path = \Storage::disk('lead')->path($this->dir.$this->filename);
|
||||
//name =
|
||||
//'mine' => 'application/pdf',
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue