Files
sam-manage/resources/views/emails/payslip-notification.blade.php
김보곤 13ee95270e feat: [payroll] 급여명세서 이메일을 PDF 첨부파일로 변경
- 이메일 본문에 급여 내역 직접 노출 → PDF 첨부파일로 전환 (보안 강화)
- barryvdh/laravel-dompdf 패키지 추가
- 이메일 본문은 간단한 안내 메시지로 변경
- dompdf에서 한글 렌더링을 위해 Noto Sans KR 폰트 적용
2026-03-10 09:11:46 +09:00

39 lines
1.7 KiB
PHP

<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<style>
body { font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; margin: 0; padding: 20px; background: #f5f5f5; }
.container { max-width: 600px; margin: 0 auto; background: #fff; padding: 40px 36px; border-radius: 8px; }
h2 { font-size: 18px; font-weight: 700; color: #333; margin: 0 0 20px; }
.info { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 24px; }
.highlight { display: inline-block; background: #f0f7ff; border: 1px solid #d0e3f7; border-radius: 4px; padding: 12px 20px; margin: 8px 0 16px; font-size: 14px; color: #1a5276; font-weight: 600; }
.notice { font-size: 12px; color: #999; border-top: 1px solid #eee; padding-top: 16px; margin-top: 24px; line-height: 1.6; }
.footer { font-size: 12px; color: #999; margin-top: 20px; text-align: right; }
</style>
</head>
<body>
<div class="container">
<h2>[SAM] {{ $payslipData['pay_year'] }}{{ str_pad($payslipData['pay_month'], 2, '0', STR_PAD_LEFT) }}월분 급여명세서</h2>
<div class="info">
{{ $payslipData['employee_name'] }}, 안녕하세요.<br>
{{ $payslipData['pay_year'] }} {{ str_pad($payslipData['pay_month'], 2, '0', STR_PAD_LEFT) }}월분 급여명세서를 보내드립니다.
</div>
<div class="highlight">
첨부된 PDF 파일을 다운로드하여 확인해 주세요.
</div>
<div class="notice">
메일은 자동 발송된 메일입니다.<br>
급여 관련 문의사항은 인사담당자에게 연락해 주세요.
</div>
<div class="footer">
&#13134;코드브릿지엑스(CodebridgeX)
</div>
</div>
</body>
</html>