added employee visit logic in out mail
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 2m44s
Laravel Larastan / larastan (pull_request) Failing after 4m51s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 2m44s
Laravel Larastan / larastan (pull_request) Failing after 4m51s
This commit is contained in:
@@ -30,7 +30,10 @@ class VisitorOutMail extends Mailable
|
||||
public function envelope(): 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 -->
|
||||
<tr>
|
||||
<td style="background:#0f766e;padding:20px;text-align:center;">
|
||||
<h2 style="margin:0;color:#ffffff;">
|
||||
{{-- <h2 style="margin:0;color:#ffffff;">
|
||||
Visitor Out Notification
|
||||
</h2> --}}
|
||||
<h2 style="margin:0;color:#ffffff;">
|
||||
{{ $entry->type === 'InterUnitStaff'
|
||||
? 'Employee Out Notification'
|
||||
: 'Visitor Out Notification'
|
||||
}}
|
||||
</h2>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -30,15 +36,18 @@
|
||||
</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>
|
||||
|
||||
<table width="100%" cellpadding="10" cellspacing="0"
|
||||
style="border-collapse:collapse;margin-top:15px;">
|
||||
|
||||
<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
|
||||
</td> --}}
|
||||
<td style="border:1px solid #d1d5db;width:30%;font-weight:bold;">
|
||||
{{ $entry->type === 'InterUnitStaff' ? 'Employee Name' : 'Visitor Name' }}
|
||||
</td>
|
||||
<td style="border:1px solid #d1d5db;">
|
||||
{{ $entry?->name ?? '-' }}
|
||||
@@ -55,8 +64,11 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="border:1px solid #d1d5db;font-weight:bold;">
|
||||
{{-- <td style="border:1px solid #d1d5db;font-weight:bold;">
|
||||
Company
|
||||
</td> --}}
|
||||
<td style="border:1px solid #d1d5db;font-weight:bold;">
|
||||
{{ $entry->type === 'InterUnitStaff' ? 'Unit' : 'Company' }}
|
||||
</td>
|
||||
<td style="border:1px solid #d1d5db;">
|
||||
{{ $entry?->company ?? '-' }}
|
||||
|
||||
Reference in New Issue
Block a user