Commit 22276199 by Azhan Hannan

changes

parent 4b9c1506
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class Reminder extends Mailable
{
use Queueable, SerializesModels;
public $data_email;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($data_email)
{
$this->data_email = $data_email;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->subject($this->data_email['subject'])
->from($this->data_email['sender_name'])
->markdown('mail.content.Reminder');
}
}
@component('mail::message')
@if(count($data_overheads) > 0 && count($data_project) == 0)
# Your overhead has been rejected!
@elseif(count($data_overheads) == 0 && count($data_project) > 0)
# Your project has been rejected!
@else
# Your projects & overhead has been rejected!
@endif
Assalamualaikum w.b.t Dato' /Datin /En /Pn / Cik
{!! ucwords(strtolower($data_email['staffname'])) !!}
We would like to inform you as your
@if(count($data_overheads) > 0 && count($data_project) == 0)
overhead has been rejected.
@elseif(count($data_overheads) == 0 && count($data_project) > 0)
timesheet @if(count($data_project) == 1) project has @else projects have @endif been rejected.
@else
projects & overhead has been rejected.
@endif
The details of timesheet submission is as below: <br>
<table style="border: black 1px solid; font-size: 16px; text-align: center; width: 150%;" id="project">
<thead>
<tr>
<th style="border: black 1px solid;">Phase</th>
<th style="border: black 1px solid;">Month</th>
<th style="border: black 1px solid;">Year</th>
<th style="border: black 1px solid;">Submission Date</th>
</tr>
</thead>
<tbody>
<tr>
<td style="border: black 1px solid;">@if($data_timesheet['phase'] == 1) 1st Halfmonth @else 2nd Halfmonth @endif</td>
<td style="border: black 1px solid;">{!! date("F", mktime(0, 0, 0, $data_timesheet['month'], 10)) !!}</td>
<td style="border: black 1px solid;">{!! ucwords(strtolower($data_timesheet['year'])) !!}</td>
<td style="border: black 1px solid;">{!! date("d F Y", strtotime($data_timesheet['submissionDate'])) !!}</td>
</tr>
</tbody>
</table>
<br>
@if(count($data_project) > 0)
The details of the project rejection is as below: <br>
<table style="border: black 1px solid; font-size: 16px; text-align: center; width: 150%;" id="project">
<thead>
<tr>
<th style="border: black 1px solid;">Project Code</th>
<th style="border: black 1px solid;">Project Name</th>
<th style="border: black 1px solid;">Rejected By</th>
<th style="border: black 1px solid;">Remarks</th>
</tr>
</thead>
<tbody>
@foreach($data_project as $key => $project)
<tr>
<td style="border: black 1px solid;">{!! $project['pcode'] !!} </td>
<td style="border: black 1px solid;">{!! $project['projectname'] !!}</td>
@if($key==0)
<td style="border: black 1px solid;" rowspan="{{count($data_project)}}">{!! ucwords(strtolower($project['projectdirector'])) !!}</td>
<td style="border: black 1px solid;" rowspan="{{count($data_project)}}">{!! ucwords(strtolower($project['remarks'])) !!}</td>
@endif
</tr>
@endforeach
</tbody>
</table>
<br>
@endif
@if(count($data_overheads) > 0)
The details of the rejected overhead is as below: <br>
<table style="border: black 1px solid; font-size: 16px; text-align: center; width: 150%;" id="project">
<thead>
<tr>
<th style="border: black 1px solid;">Overhead</th>
<th style="border: black 1px solid;">Rejected By</th>
<th style="border: black 1px solid;">Remarks</th>
</tr>
</thead>
<tbody>
@foreach($data_overheads as $key => $overhead)
<tr>
<td style="border: black 1px solid;">{!! $overhead['projectname'] !!}</td>
@if($key==0)
<td style="border: black 1px solid;" rowspan="{{count($data_overheads)}}">{!! ucwords(strtolower($overhead['projectdirector'])) !!}</td>
<td style="border: black 1px solid;" rowspan="{{count($data_overheads)}}">{!! ucwords(strtolower($overhead['remarks'])) !!}</td>
@endif
</tr>
@endforeach
</tbody>
</table>
<br>
@endif
Thank you. <br>
<!-- <br> -->
---
<br>
<i>This is an auto generated message, please do not reply.</i>
<!-- Thanks,<br> -->
<!-- {{ config('app.name') }} -->
@endcomponent
\ No newline at end of file
@component('mail::message')
# Reminder for Timesheet Submission!
Assalamualaikum w.b.t Mr/Mrs.
{!! ucwords(strtolower($data_email['name'])) !!},
We would like to inform you as of today, {!! date('j F Y', strtotime($data_email['today'])) !!} , we have not receive your timesheet for @if($data_email['phase'] == 1) 1st Halfmonth @else 2nd Halfmonth @endif {!! date('F', mktime(0, 0, 0, $data_email['month'], 10)).' '.$data_email['year'] !!}.
Kindly submit your timesheet as soon as possible.
Thank you. <br>
<!-- <br> -->
---
<br>
<i>This is an auto generated message, please do not reply.</i>
<!-- Thanks,<br> -->
<!-- {{ config('app.name') }} -->
@endcomponent
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment