{{--
กรอบอีเมลการ์ดที่ทุกอีเมลของระบบใช้ร่วมกัน (ApprovalRequestMail, NoticeMail)
table + inline style เพื่อให้แสดงผลเหมือนกันใน Outlook / Gmail / มือถือ
ตัวแปร: heading, rows[label => value], highlight, note, instruction, attachNote, button, buttonUrl, logo, company, companyCode, site, preheader
--}}
@php
// ส่งจริง: ฝังโลโก้แบบ CID ($message มีเฉพาะตอนส่ง) · ตัวอย่างในระบบ: ใช้ data URI
$logoSrc = $logo ? (isset($message) ? $message->embedData($logo['data'], 'logo', $logo['mime']) : $logo['uri']) : null;
$font = "font-family:'Sarabun','Leelawadee UI','Segoe UI',Tahoma,Arial,sans-serif;";
@endphp
{{ $heading }}
{{ $heading }} · {{ $preheader }}
{{-- โลโก้ --}}
@if ($logoSrc)
@else
{{ $companyCode ?? 'e-Memo' }}
@endif
|
{{-- หัวเรื่อง --}}
| {{ $heading }} |
{{-- ข้อมูลเอกสาร --}}
@if ($rows)
@foreach ($rows as $label => $value)
| {{ $label }}: {{ $value }} |
@endforeach
|
@endif
{{-- ข้อความหลัก (สีฟ้า) + คำแนะนำ --}}
|
{!! nl2br(e($highlight)) !!}
@if ($note)
{!! nl2br(e($note)) !!}
@endif
@if ($instruction)
{{ $instruction }}
@endif
@if ($attachNote)
📎 {{ $attachNote }}
@endif
|
{{-- ปุ่ม --}}
|
{{ $button }}
|
{{-- ส่วนท้าย --}}
|
{{ $company }} {{ __('เข้าสู่หน้าเว็บไซต์') }}
|
|