{{-- กรอบอีเมลการ์ดที่ทุกอีเมลของระบบใช้ร่วมกัน (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 ($rows) @endif {{-- ข้อความหลัก (สีฟ้า) + คำแนะนำ --}} {{-- ปุ่ม --}} {{-- ส่วนท้าย --}}
@if ($logoSrc) {{ $companyCode }} @else
{{ $companyCode ?? 'e-Memo' }}
@endif
{{ $heading }}
@foreach ($rows as $label => $value) @endforeach
{{ $label }}: {{ $value }}
{!! nl2br(e($highlight)) !!}
@if ($note)
{!! nl2br(e($note)) !!}
@endif @if ($instruction)
{{ $instruction }}
@endif @if ($attachNote)
📎 {{ $attachNote }}
@endif
{{ $button }}
{{ $company }} {{ __('เข้าสู่หน้าเว็บไซต์') }}