api code global jain
This commit is contained in:
37
app/Mail/CertificateApprovedForHospitalMail.php
Normal file
37
app/Mail/CertificateApprovedForHospitalMail.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class CertificateApprovedForHospitalMail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
protected $certificate;
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($certificate)
|
||||
{
|
||||
$this->certificate = $certificate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
$data = $this?->certificate;
|
||||
return $this->subject('Request No: '.requestNumberFormat($data->id).' Name:'.$data?->full_name. ' - Approved')
|
||||
->attach($data->pdf_url,['content-type','application/pdf'])
|
||||
->view('backend.mail.certificate_approved_for_hospital',compact('data'));
|
||||
}
|
||||
}
|
||||
38
app/Mail/CertificateApprovedForPatientMail.php
Normal file
38
app/Mail/CertificateApprovedForPatientMail.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class CertificateApprovedForPatientMail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
protected $certificate;
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($certificate)
|
||||
{
|
||||
$this->certificate = $certificate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
$data = $this->certificate;
|
||||
|
||||
return $this->subject('Request No: '.requestNumberFormat($data->id).' Status: Approved')
|
||||
->attach($data->pdf_url,['content-type','application/pdf'])
|
||||
->view('backend.mail.certificate_approved_for_patient',compact('data'));
|
||||
}
|
||||
}
|
||||
36
app/Mail/CertificateRejectionForPatientMail.php
Normal file
36
app/Mail/CertificateRejectionForPatientMail.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class CertificateRejectionForPatientMail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
protected $certificate;
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($certificate)
|
||||
{
|
||||
$this->certificate = $certificate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
$data = $this->certificate;
|
||||
return $this->subject('Request No: '.requestNumberFormat($data->id).' Name: '.$data->full_name.' Status: Rejected')
|
||||
->view('backend.mail.certificate_rejection_for_patient',compact('data'));
|
||||
}
|
||||
}
|
||||
36
app/Mail/CertificateRequestForAdminMail.php
Normal file
36
app/Mail/CertificateRequestForAdminMail.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class CertificateRequestForAdminMail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
protected $certificate;
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($certificate)
|
||||
{
|
||||
$this->certificate = $certificate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
$data = $this->certificate;
|
||||
return $this->subject(' JHC Request No: '.requestNumberFormat($data->id).' Name : '.$data->full_name)
|
||||
->view('backend.mail.certificate_request_for_admin', compact('data'));
|
||||
}
|
||||
}
|
||||
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
|
||||
]);
|
||||
}
|
||||
}
|
||||
35
app/Mail/Sangh/SanghRequestSentMail.php
Normal file
35
app/Mail/Sangh/SanghRequestSentMail.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail\Sangh;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class SanghRequestSentMail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
protected $sangh;
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($sangh)
|
||||
{
|
||||
$this->sangh = $sangh;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
$data = $this->sangh;
|
||||
return $this->view('frontend.mail.sangh.sangh-request-sent', compact('data'));
|
||||
}
|
||||
}
|
||||
40
app/Mail/UserConfirmEmail.php
Normal file
40
app/Mail/UserConfirmEmail.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class UserConfirmEmail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
protected $user;
|
||||
protected $otp;
|
||||
|
||||
/**
|
||||
* UserConfirmEmail constructor.
|
||||
* @param $user
|
||||
* @param $otp
|
||||
*/
|
||||
public function __construct($user,$otp)
|
||||
{
|
||||
$this->user = $user;
|
||||
$this->otp = $otp;
|
||||
$this->subject = trans('email.email_subject_label.otp_email_verification');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UserConfirmEmail
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
return $this->view('frontend.mail.account-activation')
|
||||
->with([
|
||||
'user' => $this->user,
|
||||
'otp' => $this->otp,
|
||||
]);
|
||||
}
|
||||
}
|
||||
50
app/Mail/WrongChaturmasEmail.php
Normal file
50
app/Mail/WrongChaturmasEmail.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use App\Models\Sant;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class WrongChaturmasEmail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
protected $user;
|
||||
protected $santID;
|
||||
protected $chaturmasID;
|
||||
protected $description;
|
||||
// protected $sant;
|
||||
|
||||
/**
|
||||
* UserConfirmEmail constructor.
|
||||
* @param $user
|
||||
*/
|
||||
public function __construct($user, $santID, $chaturmasID, $description)
|
||||
{
|
||||
$this->user = $user;
|
||||
$this->santID = $santID;
|
||||
$this->chaturmasID = $chaturmasID;
|
||||
$this->description = $description;
|
||||
// $this->$sant = $sant;
|
||||
$this->subject = trans('email.email_subject_label.wrong_chaturmas');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WrongChaturmasEmail
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
$sant = Sant::where('id', $this->santID)->first();
|
||||
|
||||
return $this->view('frontend.mail.wrong-chaturmas')
|
||||
->with([
|
||||
'user' => $this->user,
|
||||
'santID' => $this->santID,
|
||||
'chaturmasID' => $this->chaturmasID,
|
||||
'description' => $this->description,
|
||||
'sant' => $sant
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user