api code global jain
This commit is contained in:
47
app/Mail/ReportEmail.php
Normal file
47
app/Mail/ReportEmail.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class ReportEmail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
protected $user;
|
||||
protected $type;
|
||||
protected $reportedFor;
|
||||
protected $reportSubject;
|
||||
protected $description;
|
||||
|
||||
/**
|
||||
* ReportEmail constructor.
|
||||
* @param $user
|
||||
*/
|
||||
public function __construct($user, $type, $reportedFor, $reportSubject, $description)
|
||||
{
|
||||
$this->user = $user;
|
||||
$this->type = $type;
|
||||
$this->reportedFor = $reportedFor;
|
||||
$this->reportSubject = $reportSubject;
|
||||
$this->description = $description;
|
||||
$this->subject = trans('email.email_subject_label.report_request');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ReportEmail
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
return $this->view('frontend.mail.report')
|
||||
->with([
|
||||
'user' => $this->user,
|
||||
'type' => $this->type,
|
||||
'reportedFor' => $this->reportedFor,
|
||||
'reportSubject' => $this->reportSubject,
|
||||
'description' => $this->description
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user