Merge branch 'send-email-payment-proof' of gitlab.com:CIEFWorldwideSdnBhd/exchange-2.0 into development

This commit is contained in:
edmondlang
2023-06-03 19:20:53 +08:00
2 changed files with 6 additions and 5 deletions
@@ -94,11 +94,12 @@ class CreatePaymentProofDocumentLogic extends AbstractControllerLogic
$this->createInvoiceTransactionProcessor->execute($transaction->owner->booking);
// send email to customer
// todo: send them the file also
// todo: a function to send a proof to the receipiant, they have to give us a email of the receipiant and also need to submiited purchase order
$companyEmployee = $transaction->owner->booking->company->employees;
foreach ($companyEmployee as $employee) {
$this->sendUserPaymentProofUploadedEmail::dispatch($employee, $transaction->owner->booking, $file[0]);
if (app()->environment('production')) {
$companyEmployee = $transaction->owner->booking->company->employees;
foreach ($companyEmployee as $employee) {
$this->sendUserPaymentProofUploadedEmail::dispatch($employee, $transaction->owner->booking, $file[0]);
}
}
return $this->response([]);
@@ -1,7 +1,7 @@
@extends('emails.layout.base')
@section('content')
<h4 style="font-size: 1em;">Dear {{$user->name}},</h4>
<h4 style="font-size: 1em;">Dear {{ucwords($user->name)}},</h4>
<p style="font-size: 0.9em">Thank you for using CIEF Exchange service!</p>
<p style="margin-top: 30px; font-size: 0.8em">We have completed your RMB transfer transaction for the ref. no {{$booking->marking}}. The RMB bank slip has been attached to this email. If you would like to view the transaction, please click on the following link:</p>
<div style="margin-top: 20px;">