|
Visitor approval needed
|
@if(!empty($logoUrl))
@endif
|
|
|
Hi,
{{ $visitor->full_name }}
@if(!empty($visitor->company))
({{ $visitor->company }})
@endif
is waiting for your approval.
|
|
@php
$photoUrl = $visitor->photo_url ?? (isset($visitor->photo_path) ? (url('storage/'.$visitor->photo_path)) : null);
@endphp
@if(!empty($photoUrl))
|
@endif
@php
$rows = [
['label' => 'Visitor', 'value' => $visitor->full_name ?? '-'],
['label' => 'Company', 'value' => $visitor->company ?? '-'],
['label' => 'Purpose', 'value' => $visit->purpose_text ?? '-'],
['label' => 'Email', 'value' => $visitor->email ?? '-'],
['label' => 'Phone', 'value' => $visitor->telephone ?? '-'],
['label' => 'ID No.', 'value' => $visitor->identification_no ?? null],
['label' => 'Host', 'value' => ($visit->host_name ?? $visit->host_email ?? null)],
];
@endphp
@foreach($rows as $r)
@continue(empty($r['value'])) {{-- skip null/empty rows --}}
|
{{ $r['label'] }}
|
{{ $r['value'] }}
|
@if(!$loop->last)
|
@endif
@endforeach
|
@if(!empty($visit->unit_no) || !empty($visit->permit_no) || !empty($visit->order_no))
|
Additional details
|
@if(!empty($visit->unit_no))
|
• Unit/Dept: {{ $visit->unit_no }}
|
@endif
@if(!empty($visit->permit_no))
|
• Permit No: {{ $visit->permit_no }}
|
@endif
@if(!empty($visit->order_no))
|
• Order No: {{ $visit->order_no }}
|
@endif
@endif
|
|
You are receiving this email because you are listed as an approver for visitor requests.
@if(!empty($frontend))
Manage approvals at {{ rtrim($frontend,'/') }}
@endif
|
|