This commit is contained in:
ivan-sim
2024-01-10 11:22:07 +07:00
parent a8686c07a7
commit 0a2c617581
13 changed files with 147 additions and 24 deletions

View File

@@ -977,8 +977,9 @@ class ClaimController extends Controller
public function sendNotif($description)
{
// Insert data notifications
$emailTo = 'hospitaladmin@linksehat.com';
$dataNotif = [
'hospital_id' => 1,
'email' => $emailTo,
'title' => 'Request Document',
'description' => 'Please enter the document '.$description,
'type' => 1,
@@ -991,12 +992,12 @@ class ClaimController extends Controller
// Send Email after insert notifications
if($sendNotif)
{
//Beluma ada Data Users
$nameTo = 'Hospital Admin';
$dataEmail = [
'email' => 'akun.kerja.ivan@gmail.com',
'name' => 'Ivan Julian',
'email' => $emailTo,
'name' => $nameTo,
'subject' => 'Enter Document '.$description,
'body' => View::make('email/notif_email', ['name' => 'Ivan Julian', 'link' => 'https://linkmedis.com/chat'])->render(),
'body' => View::make('email/notif_email', ['name' => $nameTo, 'link' => 'https://hospitalportal.linksehat.com/dashboard'])->render(),
];
Helper::sendEmail($dataEmail);
}