mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-23 22:44:03 +00:00
42 lines
1003 B
PHP
42 lines
1003 B
PHP
<?php
|
|
|
|
namespace App\Classes\Notifications;
|
|
|
|
use App\Models\Booking;
|
|
use App\Models\User;
|
|
use App\Models\UserEmailVerification;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
class PaymentProofUploadedEmail extends AbstractEmail
|
|
{
|
|
|
|
/** @var User */
|
|
private $user;
|
|
|
|
/** @var Booking */
|
|
private $booking;
|
|
|
|
/**
|
|
* UserVerificationEmail constructor.
|
|
* @param User $user
|
|
* @param UserEmailVerification $attempt
|
|
*/
|
|
public function __construct(User $user, Booking $booking)
|
|
{
|
|
$this->user = $user;
|
|
$this->booking = $booking;
|
|
}
|
|
|
|
|
|
public function toMail()
|
|
{
|
|
return (new MailMessage)
|
|
->subject('Transfer Completed (REF: ' . $this->booking->marking . ')')
|
|
->to('edmond.wuiming2021@gmail.com') // testing email
|
|
// ->attach('/path/to/file') // todo-new: add attachement
|
|
->view('emails.accounts.payment_proof_email', ['user' => $this->user, 'booking' => $this->booking]);
|
|
}
|
|
|
|
|
|
}
|