79 lines
4.0 KiB
PHP

@php
$brandTxt = $brand ?? config('app.name', 'Brand');
$subj = $subject ?? '';
$copy = $copyright ?? ('© 2018 '.$brandTxt.'.');
$bodyOut = $body_html ?? nl2br(e($body_text ?? $body ?? ''));
$snsList = [];
if (!empty($sns) && is_array($sns)) {
if (isset($sns[0]) && is_array($sns[0])) $snsList = $sns;
else foreach ($sns as $k=>$u) if ($u) $snsList[] = ['label'=>ucfirst((string)$k), 'url'=>$u];
}
@endphp
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="background:#050914; padding:26px 0;">
<tr>
<td align="center">
<table role="presentation" width="660" cellpadding="0" cellspacing="0"
style="width:660px; max-width:94%; background:#0b1220; border-radius:18px; overflow:hidden; border:1px solid rgba(255,255,255,.10);">
<tr>
<td style="padding:18px 20px; background:linear-gradient(90deg,#111827,#0b1220); color:#e5e7eb; border-bottom:1px solid rgba(255,255,255,.08);">
<div style="display:flex; align-items:center; justify-content:space-between;">
<div style="font-weight:900; font-size:15px;">
@if(!empty($logoUrl))
<img src="{{ $logoUrl }}" alt="{{ $brandTxt }}" style="height:20px; vertical-align:middle;">
@else
{{ $brandTxt }}
@endif
</div>
</div>
</td>
</tr>
<tr>
<td style="padding:22px 20px;">
<div style="font-weight:900; font-size:18px; color:#e5e7eb; margin-bottom:12px;">
{{ $subj }}
</div>
<div style="background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10); border-radius:14px; padding:14px;">
<div style="font-size:14px; line-height:1.85; color:#e5e7eb; height:300px">
{!! $bodyOut !!}
</div>
</div>
{{-- Highlight tip --}}
<div style="border-left:4px solid #6b7280; padding:10px 12px; background:#19202d; border-radius:12px; margin-top:20px">
<div style="font-size:12px; color:#f8f8f8; font-weight:800; margin-bottom:4px;">안내</div>
<div style="font-size:12px; color:#eef0f3; line-height:1.6;">
메일은 발신 전용입니다. 문의가 필요하면 관리자 채널을 통해 연락해 주세요.
</div>
</div>
<div style="margin-top:18px; font-size:12px; color:rgba(229,231,235,.70);">
<div style="border-top:1px solid rgba(255,255,255,.08); padding-top:14px;">
<div style="margin-bottom:10px;">{{ $copy }}</div>
@if(!empty($snsList))
<div>
@foreach($snsList as $s)
@php $u=$s['url']??''; $l=$s['label']??''; @endphp
@if($u && $l)
<a href="{{ $u }}" style="color:#93c5fd; text-decoration:none; margin-right:12px;">
{{ $l }}
</a>
@endif
@endforeach
</div>
@endif
</div>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>