Server IP : 66.29.132.124 / Your IP : 3.144.104.118 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/modules/Vendor/Emails/ |
Upload File : |
<?php namespace Modules\Vendor\Emails; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Modules\User\Events\VendorApproved; class PayoutRequestDeletedEmail extends Mailable { use Queueable, SerializesModels; public $token; public $user; public $payout_request; public $email_to; public function __construct($user,$payout_request,$to = 'vendor') { $this->user = $user; $this->payout_request = $payout_request; $this->email_to = $to; } public function build() { $subject = ''; switch ($this->email_to) { case "admin": $subject = __('A payout request has been deleted'); break; case "vendor": $subject = __('Your payout request has been deleted'); break; } return $this->subject($subject)->view('Vendor::emails.payout-request-email',['user'=>$this->user,'payout_request'=>$this->payout_request,'to'=>$this->email_to,'action'=>'delete']); } }