⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.26
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
tech
/
shopadmin.techlup.co.ke
/
admin
/
app
/
Mail
/
View File Name :
UserPasswordResetMail.php
<?php namespace App\Mail; use App\CentralLogics\Helpers; use App\Models\BusinessSetting; use App\Models\EmailTemplate; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class UserPasswordResetMail extends Mailable { use Queueable, SerializesModels; /** * Create a new message instance. * * @return void */ protected $otp; protected $name; public function __construct($otp,$name) { $this->otp = $otp; $this->name = $name; } /** * Build the message. * * @return $this */ public function build() { // $otp = $this->otp; // $name = $this->name; // return $this->view('email-templates.admin-panel-password-reset', ['url' => $otp,'name' => $name]); $company_name = BusinessSetting::where('key', 'business_name')->first()->value; $data=EmailTemplate::where('type','user')->where('email_type', 'forget_password')->first(); $template=$data?$data->email_template:4; $code = $this->otp; $user_name = $this->name; $title = Helpers::text_variable_data_format( value:$data['title']??'',user_name:$user_name??''); $body = Helpers::text_variable_data_format( value:$data['body']??'',user_name:$user_name??''); $footer_text = Helpers::text_variable_data_format( value:$data['footer_text']??'',user_name:$user_name??''); $copyright_text = Helpers::text_variable_data_format( value:$data['copyright_text']??'',user_name:$user_name??''); return $this->view('email-templates.new-email-format-'.$template, ['company_name'=>$company_name,'data'=>$data,'title'=>$title,'body'=>$body,'footer_text'=>$footer_text,'copyright_text'=>$copyright_text,'code'=>$code]); } }