added final approval (close) expense notification
This commit is contained in:
@@ -59,4 +59,30 @@ class WhatsappHelper
|
|||||||
|
|
||||||
return $response->getBody()->getContents();
|
return $response->getBody()->getContents();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function finalApprove($phones, $expense_number)
|
||||||
|
{
|
||||||
|
$client = new Client();
|
||||||
|
|
||||||
|
$data = [];
|
||||||
|
foreach ($phones as $phone) {
|
||||||
|
$data[] = [
|
||||||
|
'phone' => $phone,
|
||||||
|
'message' => 'Pengajuan pengeluaran anda dengan nomor *' . $expense_number . '* telah ditutup karena telah selesai diproses. Silahkan buka website untuk melihat detailnya.',
|
||||||
|
'source' => 'web'
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
$response = $client->post(env('WABLAS_HOST') . '/api/v2/send-message', [
|
||||||
|
'headers' => [
|
||||||
|
'Authorization' => env('WABLAS_TOKEN'),
|
||||||
|
'Content-Type' => 'application/json'
|
||||||
|
],
|
||||||
|
'json' => [
|
||||||
|
'data' => $data
|
||||||
|
]
|
||||||
|
]);
|
||||||
|
|
||||||
|
return $response->getBody()->getContents();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ use Illuminate\Support\Str;
|
|||||||
use Illuminate\Support\Facades\Mail;
|
use Illuminate\Support\Facades\Mail;
|
||||||
use App\Mail\ExpenseApproved;
|
use App\Mail\ExpenseApproved;
|
||||||
use App\Mail\ExpenseRejected;
|
use App\Mail\ExpenseRejected;
|
||||||
|
use App\Mail\FinalApprove;
|
||||||
use App\Helpers\WhatsappHelper;
|
use App\Helpers\WhatsappHelper;
|
||||||
|
|
||||||
class FormEntertainmentPresentationController extends Controller
|
class FormEntertainmentPresentationController extends Controller
|
||||||
@@ -305,6 +306,41 @@ class FormEntertainmentPresentationController extends Controller
|
|||||||
'status' => 'Closed'
|
'status' => 'Closed'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$heads = $form->user->getCabangAndRegionHead();
|
||||||
|
$name = $form->user->name;
|
||||||
|
$expense_number = $form->expense_number;
|
||||||
|
$tanggal = $form->tanggal;
|
||||||
|
$total = $form->total;
|
||||||
|
|
||||||
|
// Collect all recipients
|
||||||
|
$recipients = [$form->user->email, auth()->user()->email];
|
||||||
|
$phoneNumbers = [$form->user->phone, auth()->user()->phone];
|
||||||
|
|
||||||
|
if ($heads['cabang_head']) {
|
||||||
|
$recipients[] = $heads['cabang_head']['email'];
|
||||||
|
$phoneNumbers[] = $heads['cabang_head']['phone'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($heads['region_head']) {
|
||||||
|
$recipients[] = $heads['region_head']['email'];
|
||||||
|
$phoneNumbers[] = $heads['region_head']['phone'];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove duplicate email addresses, if any
|
||||||
|
$recipients = array_unique($recipients);
|
||||||
|
$phoneNumbers = array_unique($phoneNumbers);
|
||||||
|
|
||||||
|
// Send bulk email
|
||||||
|
Mail::to($recipients)->send(new FinalApprove(
|
||||||
|
$name,
|
||||||
|
$expense_number,
|
||||||
|
$tanggal,
|
||||||
|
$total
|
||||||
|
));
|
||||||
|
|
||||||
|
// send whatsapp message
|
||||||
|
WhatsappHelper::finalApprove($phoneNumbers, $expense_number);
|
||||||
|
|
||||||
session()->flash('success', 'Form has been final approved.');
|
session()->flash('success', 'Form has been final approved.');
|
||||||
return redirect()->back();
|
return redirect()->back();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ use Illuminate\Support\Str;
|
|||||||
use Illuminate\Support\Facades\Mail;
|
use Illuminate\Support\Facades\Mail;
|
||||||
use App\Mail\ExpenseApproved;
|
use App\Mail\ExpenseApproved;
|
||||||
use App\Mail\ExpenseRejected;
|
use App\Mail\ExpenseRejected;
|
||||||
|
use App\Mail\FinalApprove;
|
||||||
use App\Helpers\WhatsappHelper;
|
use App\Helpers\WhatsappHelper;
|
||||||
|
|
||||||
class FormMeetingSeminarController extends Controller
|
class FormMeetingSeminarController extends Controller
|
||||||
@@ -291,6 +292,41 @@ class FormMeetingSeminarController extends Controller
|
|||||||
'status' => 'Closed'
|
'status' => 'Closed'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$heads = $form->user->getCabangAndRegionHead();
|
||||||
|
$name = $form->user->name;
|
||||||
|
$expense_number = $form->expense_number;
|
||||||
|
$tanggal = $form->tanggal;
|
||||||
|
$total = $form->total;
|
||||||
|
|
||||||
|
// Collect all recipients
|
||||||
|
$recipients = [$form->user->email, auth()->user()->email];
|
||||||
|
$phoneNumbers = [$form->user->phone, auth()->user()->phone];
|
||||||
|
|
||||||
|
if ($heads['cabang_head']) {
|
||||||
|
$recipients[] = $heads['cabang_head']['email'];
|
||||||
|
$phoneNumbers[] = $heads['cabang_head']['phone'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($heads['region_head']) {
|
||||||
|
$recipients[] = $heads['region_head']['email'];
|
||||||
|
$phoneNumbers[] = $heads['region_head']['phone'];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove duplicate email addresses, if any
|
||||||
|
$recipients = array_unique($recipients);
|
||||||
|
$phoneNumbers = array_unique($phoneNumbers);
|
||||||
|
|
||||||
|
// Send bulk email
|
||||||
|
Mail::to($recipients)->send(new FinalApprove(
|
||||||
|
$name,
|
||||||
|
$expense_number,
|
||||||
|
$tanggal,
|
||||||
|
$total
|
||||||
|
));
|
||||||
|
|
||||||
|
// send whatsapp message
|
||||||
|
WhatsappHelper::finalApprove($phoneNumbers, $expense_number);
|
||||||
|
|
||||||
session()->flash('success', 'Form has been final approved.');
|
session()->flash('success', 'Form has been final approved.');
|
||||||
return redirect()->back();
|
return redirect()->back();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ use App\Helpers\NextCloudHelper;
|
|||||||
use Illuminate\Support\Facades\Mail;
|
use Illuminate\Support\Facades\Mail;
|
||||||
use App\Mail\ExpenseApproved;
|
use App\Mail\ExpenseApproved;
|
||||||
use App\Mail\ExpenseRejected;
|
use App\Mail\ExpenseRejected;
|
||||||
|
use App\Mail\FinalApprove;
|
||||||
use App\Helpers\WhatsappHelper;
|
use App\Helpers\WhatsappHelper;
|
||||||
|
|
||||||
class FormOtherController extends Controller
|
class FormOtherController extends Controller
|
||||||
@@ -296,6 +297,41 @@ class FormOtherController extends Controller
|
|||||||
'status' => 'Closed'
|
'status' => 'Closed'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$heads = $form->user->getCabangAndRegionHead();
|
||||||
|
$name = $form->user->name;
|
||||||
|
$expense_number = $form->expense_number;
|
||||||
|
$tanggal = $form->tanggal;
|
||||||
|
$total = $form->total;
|
||||||
|
|
||||||
|
// Collect all recipients
|
||||||
|
$recipients = [$form->user->email, auth()->user()->email];
|
||||||
|
$phoneNumbers = [$form->user->phone, auth()->user()->phone];
|
||||||
|
|
||||||
|
if ($heads['cabang_head']) {
|
||||||
|
$recipients[] = $heads['cabang_head']['email'];
|
||||||
|
$phoneNumbers[] = $heads['cabang_head']['phone'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($heads['region_head']) {
|
||||||
|
$recipients[] = $heads['region_head']['email'];
|
||||||
|
$phoneNumbers[] = $heads['region_head']['phone'];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove duplicate email addresses, if any
|
||||||
|
$recipients = array_unique($recipients);
|
||||||
|
$phoneNumbers = array_unique($phoneNumbers);
|
||||||
|
|
||||||
|
// Send bulk email
|
||||||
|
Mail::to($recipients)->send(new FinalApprove(
|
||||||
|
$name,
|
||||||
|
$expense_number,
|
||||||
|
$tanggal,
|
||||||
|
$total
|
||||||
|
));
|
||||||
|
|
||||||
|
// send whatsapp message
|
||||||
|
WhatsappHelper::finalApprove($phoneNumbers, $expense_number);
|
||||||
|
|
||||||
session()->flash('success', 'Form has been final approved.');
|
session()->flash('success', 'Form has been final approved.');
|
||||||
return redirect()->back();
|
return redirect()->back();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ use Illuminate\Support\Str;
|
|||||||
use Illuminate\Support\Facades\Mail;
|
use Illuminate\Support\Facades\Mail;
|
||||||
use App\Mail\ExpenseApproved;
|
use App\Mail\ExpenseApproved;
|
||||||
use App\Mail\ExpenseRejected;
|
use App\Mail\ExpenseRejected;
|
||||||
|
use App\Mail\FinalApprove;
|
||||||
use App\Helpers\WhatsappHelper;
|
use App\Helpers\WhatsappHelper;
|
||||||
|
|
||||||
class FormUpCountryController extends Controller
|
class FormUpCountryController extends Controller
|
||||||
@@ -361,6 +362,41 @@ class FormUpCountryController extends Controller
|
|||||||
'status' => 'Closed'
|
'status' => 'Closed'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$heads = $form->user->getCabangAndRegionHead();
|
||||||
|
$name = $form->user->name;
|
||||||
|
$expense_number = $form->expense_number;
|
||||||
|
$tanggal = $form->tanggal;
|
||||||
|
$total = $form->total;
|
||||||
|
|
||||||
|
// Collect all recipients
|
||||||
|
$recipients = [$form->user->email, auth()->user()->email];
|
||||||
|
$phoneNumbers = [$form->user->phone, auth()->user()->phone];
|
||||||
|
|
||||||
|
if ($heads['cabang_head']) {
|
||||||
|
$recipients[] = $heads['cabang_head']['email'];
|
||||||
|
$phoneNumbers[] = $heads['cabang_head']['phone'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($heads['region_head']) {
|
||||||
|
$recipients[] = $heads['region_head']['email'];
|
||||||
|
$phoneNumbers[] = $heads['region_head']['phone'];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove duplicate email addresses, if any
|
||||||
|
$recipients = array_unique($recipients);
|
||||||
|
$phoneNumbers = array_unique($phoneNumbers);
|
||||||
|
|
||||||
|
// Send bulk email
|
||||||
|
Mail::to($recipients)->send(new FinalApprove(
|
||||||
|
$name,
|
||||||
|
$expense_number,
|
||||||
|
$tanggal,
|
||||||
|
$total
|
||||||
|
));
|
||||||
|
|
||||||
|
// send whatsapp message
|
||||||
|
WhatsappHelper::finalApprove($phoneNumbers, $expense_number);
|
||||||
|
|
||||||
session()->flash('success', 'Form has been final approved.');
|
session()->flash('success', 'Form has been final approved.');
|
||||||
return redirect()->back();
|
return redirect()->back();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ use Illuminate\Support\Str;
|
|||||||
use Illuminate\Support\Facades\Mail;
|
use Illuminate\Support\Facades\Mail;
|
||||||
use App\Mail\ExpenseApproved;
|
use App\Mail\ExpenseApproved;
|
||||||
use App\Mail\ExpenseRejected;
|
use App\Mail\ExpenseRejected;
|
||||||
|
use App\Mail\FinalApprove;
|
||||||
use App\Helpers\WhatsappHelper;
|
use App\Helpers\WhatsappHelper;
|
||||||
|
|
||||||
class FormVehicleController extends Controller
|
class FormVehicleController extends Controller
|
||||||
@@ -306,6 +307,41 @@ class FormVehicleController extends Controller
|
|||||||
'status' => 'Closed'
|
'status' => 'Closed'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$heads = $form->user->getCabangAndRegionHead();
|
||||||
|
$name = $form->user->name;
|
||||||
|
$expense_number = $form->expense_number;
|
||||||
|
$tanggal = $form->tanggal;
|
||||||
|
$total = $form->total;
|
||||||
|
|
||||||
|
// Collect all recipients
|
||||||
|
$recipients = [$form->user->email, auth()->user()->email];
|
||||||
|
$phoneNumbers = [$form->user->phone, auth()->user()->phone];
|
||||||
|
|
||||||
|
if ($heads['cabang_head']) {
|
||||||
|
$recipients[] = $heads['cabang_head']['email'];
|
||||||
|
$phoneNumbers[] = $heads['cabang_head']['phone'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($heads['region_head']) {
|
||||||
|
$recipients[] = $heads['region_head']['email'];
|
||||||
|
$phoneNumbers[] = $heads['region_head']['phone'];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove duplicate email addresses, if any
|
||||||
|
$recipients = array_unique($recipients);
|
||||||
|
$phoneNumbers = array_unique($phoneNumbers);
|
||||||
|
|
||||||
|
// Send bulk email
|
||||||
|
Mail::to($recipients)->send(new FinalApprove(
|
||||||
|
$name,
|
||||||
|
$expense_number,
|
||||||
|
$tanggal,
|
||||||
|
$total
|
||||||
|
));
|
||||||
|
|
||||||
|
// send whatsapp message
|
||||||
|
WhatsappHelper::finalApprove($phoneNumbers, $expense_number);
|
||||||
|
|
||||||
session()->flash('success', 'Form has been final approved.');
|
session()->flash('success', 'Form has been final approved.');
|
||||||
return redirect()->back();
|
return redirect()->back();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,61 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Mail;
|
||||||
|
|
||||||
|
use Illuminate\Bus\Queueable;
|
||||||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
|
use Illuminate\Mail\Mailable;
|
||||||
|
use Illuminate\Mail\Mailables\Content;
|
||||||
|
use Illuminate\Mail\Mailables\Envelope;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
class FinalApprove extends Mailable
|
||||||
|
{
|
||||||
|
use Queueable, SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new message instance.
|
||||||
|
*/
|
||||||
|
public function __construct(
|
||||||
|
protected string $name,
|
||||||
|
protected string $expense_number,
|
||||||
|
protected string $tanggal,
|
||||||
|
protected int $total,
|
||||||
|
) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the message envelope.
|
||||||
|
*/
|
||||||
|
public function envelope(): Envelope
|
||||||
|
{
|
||||||
|
return new Envelope(
|
||||||
|
subject: 'Expense Closed',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the message content definition.
|
||||||
|
*/
|
||||||
|
public function content(): Content
|
||||||
|
{
|
||||||
|
return new Content(
|
||||||
|
view: 'mail.closed',
|
||||||
|
with: [
|
||||||
|
'name' => $this->name,
|
||||||
|
'expense_number' => $this->expense_number,
|
||||||
|
'tanggal' => $this->tanggal,
|
||||||
|
'total' => $this->total,
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the attachments for the message.
|
||||||
|
*
|
||||||
|
* @return array<int, \Illuminate\Mail\Mailables\Attachment>
|
||||||
|
*/
|
||||||
|
public function attachments(): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -302,9 +302,6 @@
|
|||||||
<td> </td>
|
<td> </td>
|
||||||
<td class="container">
|
<td class="container">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
||||||
<!-- START CENTERED WHITE CONTAINER -->
|
|
||||||
<span class="preheader">Expense Approved</span>
|
|
||||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0" class="main">
|
<table role="presentation" border="0" cellpadding="0" cellspacing="0" class="main">
|
||||||
|
|
||||||
<!-- START MAIN CONTENT AREA -->
|
<!-- START MAIN CONTENT AREA -->
|
||||||
|
|||||||
@@ -0,0 +1,362 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<title>Expense Closed</title>
|
||||||
|
<style media="all" type="text/css">
|
||||||
|
/* -------------------------------------
|
||||||
|
GLOBAL RESETS
|
||||||
|
------------------------------------- */
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: Helvetica, sans-serif;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.3;
|
||||||
|
-ms-text-size-adjust: 100%;
|
||||||
|
-webkit-text-size-adjust: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: separate;
|
||||||
|
mso-table-lspace: 0pt;
|
||||||
|
mso-table-rspace: 0pt;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
table td {
|
||||||
|
font-family: Helvetica, sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
/* -------------------------------------
|
||||||
|
BODY & CONTAINER
|
||||||
|
------------------------------------- */
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #f4f5f6;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.body {
|
||||||
|
background-color: #f4f5f6;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
margin: 0 auto !important;
|
||||||
|
max-width: 600px;
|
||||||
|
padding: 0;
|
||||||
|
padding-top: 24px;
|
||||||
|
width: 600px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
box-sizing: border-box;
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
max-width: 600px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
/* -------------------------------------
|
||||||
|
HEADER, FOOTER, MAIN
|
||||||
|
------------------------------------- */
|
||||||
|
|
||||||
|
.main {
|
||||||
|
background: #ffffff;
|
||||||
|
border: 1px solid #eaebed;
|
||||||
|
border-radius: 16px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
clear: both;
|
||||||
|
padding-top: 24px;
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer td,
|
||||||
|
.footer p,
|
||||||
|
.footer span,
|
||||||
|
.footer a {
|
||||||
|
color: #9a9ea6;
|
||||||
|
font-size: 16px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
/* -------------------------------------
|
||||||
|
TYPOGRAPHY
|
||||||
|
------------------------------------- */
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-family: Helvetica, sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 0;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #0867ec;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
/* -------------------------------------
|
||||||
|
BUTTONS
|
||||||
|
------------------------------------- */
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
box-sizing: border-box;
|
||||||
|
min-width: 100% !important;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn > tbody > tr > td {
|
||||||
|
padding-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn table {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn table td {
|
||||||
|
background-color: #ffffff;
|
||||||
|
border-radius: 4px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn a {
|
||||||
|
background-color: #ffffff;
|
||||||
|
border: solid 2px #0867ec;
|
||||||
|
border-radius: 4px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
color: #0867ec;
|
||||||
|
cursor: pointer;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 0;
|
||||||
|
padding: 12px 24px;
|
||||||
|
text-decoration: none;
|
||||||
|
text-transform: capitalize;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary table td {
|
||||||
|
background-color: #0867ec;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary a {
|
||||||
|
background-color: #0867ec;
|
||||||
|
border-color: #0867ec;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media all {
|
||||||
|
.btn-primary table td:hover {
|
||||||
|
background-color: #ec0867 !important;
|
||||||
|
}
|
||||||
|
.btn-primary a:hover {
|
||||||
|
background-color: #ec0867 !important;
|
||||||
|
border-color: #ec0867 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------
|
||||||
|
OTHER STYLES THAT MIGHT BE USEFUL
|
||||||
|
------------------------------------- */
|
||||||
|
|
||||||
|
.last {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.first {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.align-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.align-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.align-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-link {
|
||||||
|
color: #0867ec !important;
|
||||||
|
text-decoration: underline !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clear {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mt0 {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mb0 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.preheader {
|
||||||
|
color: transparent;
|
||||||
|
display: none;
|
||||||
|
height: 0;
|
||||||
|
max-height: 0;
|
||||||
|
max-width: 0;
|
||||||
|
opacity: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
mso-hide: all;
|
||||||
|
visibility: hidden;
|
||||||
|
width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.powered-by a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------
|
||||||
|
RESPONSIVE AND MOBILE FRIENDLY STYLES
|
||||||
|
------------------------------------- */
|
||||||
|
|
||||||
|
@media only screen and (max-width: 640px) {
|
||||||
|
.main p,
|
||||||
|
.main td,
|
||||||
|
.main span {
|
||||||
|
font-size: 16px !important;
|
||||||
|
}
|
||||||
|
.wrapper {
|
||||||
|
padding: 8px !important;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
padding: 0 !important;
|
||||||
|
padding-top: 8px !important;
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
.main {
|
||||||
|
border-left-width: 0 !important;
|
||||||
|
border-radius: 0 !important;
|
||||||
|
border-right-width: 0 !important;
|
||||||
|
}
|
||||||
|
.btn table {
|
||||||
|
max-width: 100% !important;
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
.btn a {
|
||||||
|
font-size: 16px !important;
|
||||||
|
max-width: 100% !important;
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* -------------------------------------
|
||||||
|
PRESERVE THESE STYLES IN THE HEAD
|
||||||
|
------------------------------------- */
|
||||||
|
|
||||||
|
@media all {
|
||||||
|
.ExternalClass {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.ExternalClass,
|
||||||
|
.ExternalClass p,
|
||||||
|
.ExternalClass span,
|
||||||
|
.ExternalClass font,
|
||||||
|
.ExternalClass td,
|
||||||
|
.ExternalClass div {
|
||||||
|
line-height: 100%;
|
||||||
|
}
|
||||||
|
.apple-link a {
|
||||||
|
color: inherit !important;
|
||||||
|
font-family: inherit !important;
|
||||||
|
font-size: inherit !important;
|
||||||
|
font-weight: inherit !important;
|
||||||
|
line-height: inherit !important;
|
||||||
|
text-decoration: none !important;
|
||||||
|
}
|
||||||
|
#MessageViewBody a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: inherit;
|
||||||
|
font-family: inherit;
|
||||||
|
font-weight: inherit;
|
||||||
|
line-height: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table role="presentation" border="0" cellpadding="0" cellspacing="0" class="body">
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
<td class="container">
|
||||||
|
<div class="content">
|
||||||
|
<table role="presentation" border="0" cellpadding="0" cellspacing="0" class="main">
|
||||||
|
|
||||||
|
<!-- START MAIN CONTENT AREA -->
|
||||||
|
<tr>
|
||||||
|
<td class="wrapper">
|
||||||
|
<p>Halo {{ $name }},</p>
|
||||||
|
<p>Kami ingin memberitahukan bahwa pengajuan pengeluaran dengan detail sebagai berikut telah ditutup karena telah selesai:</p>
|
||||||
|
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td align="left">
|
||||||
|
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<strong>Expense Number:</strong> {{ $expense_number }}<br>
|
||||||
|
<strong>Expense Date:</strong> {{ \Carbon\Carbon::parse($tanggal)->locale('id')->isoFormat('D MMMM Y') }}<br>
|
||||||
|
<strong>Total:</strong> Rp {{ number_format($total, 0, ',', '.') }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<p style="margin-top: 20px;">Silahkan login ke aplikasi untuk melihat detail status pengajuan pengeluaran Anda.</p>
|
||||||
|
<p>Terima kasih.</p>
|
||||||
|
</td>
|
||||||
|
<!-- END MAIN CONTENT AREA -->
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<!-- START FOOTER -->
|
||||||
|
<div class="footer">
|
||||||
|
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||||
|
<tr>
|
||||||
|
<td class="content-block">
|
||||||
|
<span class="apple-link">© PT TUNGGAL IDAMAN ABDI.</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="content-block powered-by" style="margin-bottom: 20px;">
|
||||||
|
Jl. Jend. Ahmad Yani No 7, Jakarta 13230, Indonesia.
|
||||||
|
</td>
|
||||||
|
<br>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- END FOOTER -->
|
||||||
|
|
||||||
|
<!-- END CENTERED WHITE CONTAINER --></div>
|
||||||
|
</td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -302,9 +302,6 @@
|
|||||||
<td> </td>
|
<td> </td>
|
||||||
<td class="container">
|
<td class="container">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
||||||
<!-- START CENTERED WHITE CONTAINER -->
|
|
||||||
<span class="preheader">Expense Rejected</span>
|
|
||||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0" class="main">
|
<table role="presentation" border="0" cellpadding="0" cellspacing="0" class="main">
|
||||||
|
|
||||||
<!-- START MAIN CONTENT AREA -->
|
<!-- START MAIN CONTENT AREA -->
|
||||||
|
|||||||
Reference in New Issue
Block a user