Merge pull request 'ranjith-dev' (#843) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 22s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 22s
Reviewed-on: #843
This commit was merged in pull request #843.
This commit is contained in:
@@ -164,13 +164,6 @@ class VisitorEntryResource extends Resource
|
||||
$set('mobile_number', null);
|
||||
$set('company', null);
|
||||
}
|
||||
else
|
||||
{
|
||||
$set('inter_unit', null);
|
||||
$set('name', null);
|
||||
$set('mobile_number', null);
|
||||
$set('company', null);
|
||||
}
|
||||
}),
|
||||
Forms\Components\TextInput::make('other_type')
|
||||
->label('Specify Type')
|
||||
|
||||
@@ -29,7 +29,10 @@ class VisitorMail extends Mailable
|
||||
public function envelope(): Envelope
|
||||
{
|
||||
return new Envelope(
|
||||
subject: 'Visitor Arrival Notification',
|
||||
// subject: 'Visitor Arrival Notification',
|
||||
subject: $this->visitor->type === 'InterUnitStaff'
|
||||
? 'Employee Arrival Notification'
|
||||
: 'Visitor Arrival Notification',
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,14 +7,6 @@
|
||||
</head>
|
||||
<body style="margin:0;padding:0;background:#f4f6f9;font-family:Arial,Helvetica,sans-serif;">
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Visitor Arrival Notification</title>
|
||||
</head>
|
||||
<body style="margin:0;padding:0;background:#ffffff;font-family:Arial,Helvetica,sans-serif;">
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" style="background:#ffffff;">
|
||||
<tr>
|
||||
@@ -25,8 +17,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 Arrival Notification
|
||||
</h2> --}}
|
||||
<h2 style="margin:0;color:#ffffff;">
|
||||
{{ $visitor->type === 'InterUnitStaff'
|
||||
? 'Employee Arrival Notification'
|
||||
: 'Visitor Arrival Notification'
|
||||
}}
|
||||
</h2>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -40,7 +38,7 @@
|
||||
</p>
|
||||
|
||||
<p>
|
||||
A visitor has arrived and is waiting to meet you.
|
||||
A {{ $visitor->type === 'InterUnitStaff' ? 'Employee' : 'Visitor' }} has arrived and is waiting to meet you.
|
||||
Please find the details below:
|
||||
</p>
|
||||
|
||||
@@ -48,8 +46,11 @@
|
||||
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;">
|
||||
{{ $visitor->type === 'InterUnitStaff' ? 'Employee Name' : 'Visitor Name' }}
|
||||
</td>
|
||||
<td style="border:1px solid #d1d5db;">
|
||||
{{ $visitor->name }}
|
||||
@@ -67,7 +68,7 @@
|
||||
|
||||
<tr>
|
||||
<td style="border:1px solid #d1d5db;font-weight:bold;">
|
||||
Company
|
||||
{{ $visitor->type === 'InterUnitStaff' ? 'Unit' : 'Company' }}
|
||||
</td>
|
||||
<td style="border:1px solid #d1d5db;">
|
||||
{{ $visitor->company }}
|
||||
|
||||
Reference in New Issue
Block a user