Merge pull request 'added employee visit logic in out mail' (#844) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Reviewed-on: #844
This commit was merged in pull request #844.
This commit is contained in:
@@ -30,7 +30,10 @@ class VisitorOutMail extends Mailable
|
|||||||
public function envelope(): Envelope
|
public function envelope(): Envelope
|
||||||
{
|
{
|
||||||
return new Envelope(
|
return new Envelope(
|
||||||
subject: 'Visitor Out Notification',
|
// subject: 'Visitor Out Notification',
|
||||||
|
subject: $this->entry->type === 'InterUnitStaff'
|
||||||
|
? 'Employee Out Notification'
|
||||||
|
: 'Visitor Out Notification',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,14 @@
|
|||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<tr>
|
<tr>
|
||||||
<td style="background:#0f766e;padding:20px;text-align:center;">
|
<td style="background:#0f766e;padding:20px;text-align:center;">
|
||||||
<h2 style="margin:0;color:#ffffff;">
|
{{-- <h2 style="margin:0;color:#ffffff;">
|
||||||
Visitor Out Notification
|
Visitor Out Notification
|
||||||
|
</h2> --}}
|
||||||
|
<h2 style="margin:0;color:#ffffff;">
|
||||||
|
{{ $entry->type === 'InterUnitStaff'
|
||||||
|
? 'Employee Out Notification'
|
||||||
|
: 'Visitor Out Notification'
|
||||||
|
}}
|
||||||
</h2>
|
</h2>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -30,15 +36,18 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
A visitor has checked out. Please find the details below:
|
A {{ $entry->type === 'InterUnitStaff' ? 'Employee' : 'Visitor' }} has checked out. Please find the details below:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table width="100%" cellpadding="10" cellspacing="0"
|
<table width="100%" cellpadding="10" cellspacing="0"
|
||||||
style="border-collapse:collapse;margin-top:15px;">
|
style="border-collapse:collapse;margin-top:15px;">
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:1px solid #d1d5db;width:30%;font-weight:bold;">
|
{{-- <td style="border:1px solid #d1d5db;width:30%;font-weight:bold;">
|
||||||
Visitor Name
|
Visitor Name
|
||||||
|
</td> --}}
|
||||||
|
<td style="border:1px solid #d1d5db;width:30%;font-weight:bold;">
|
||||||
|
{{ $entry->type === 'InterUnitStaff' ? 'Employee Name' : 'Visitor Name' }}
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #d1d5db;">
|
<td style="border:1px solid #d1d5db;">
|
||||||
{{ $entry?->name ?? '-' }}
|
{{ $entry?->name ?? '-' }}
|
||||||
@@ -55,8 +64,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:1px solid #d1d5db;font-weight:bold;">
|
{{-- <td style="border:1px solid #d1d5db;font-weight:bold;">
|
||||||
Company
|
Company
|
||||||
|
</td> --}}
|
||||||
|
<td style="border:1px solid #d1d5db;font-weight:bold;">
|
||||||
|
{{ $entry->type === 'InterUnitStaff' ? 'Unit' : 'Company' }}
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #d1d5db;">
|
<td style="border:1px solid #d1d5db;">
|
||||||
{{ $entry?->company ?? '-' }}
|
{{ $entry?->company ?? '-' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user