<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <style>
        body {
            font-family: "Segoe UI", Arial, sans-serif;
            font-size: 14px;
            line-height: 1.6;
            color: #333;
            background-color: #f9fafb;
            padding: 20px;
        }
        .container {
            max-width: 600px;
            margin: 0 auto;
            background: #ffffff;
            border-radius: 8px;
            padding: 24px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        }
        h2 {
            color: #2563eb;
            margin-top: 0;
            margin-bottom: 16px;
            font-size: 20px;
        }
        pre {
            font-family: "Courier New", Courier, monospace; /* monospace hanya untuk isi pesan */
            font-size: 14px;
            white-space: pre-wrap; /* supaya spasi & enter tetap */
            margin: 0 0 16px 0;
        }
        .btn {
            display: inline-block;
            padding: 10px 18px;
            background: #2563eb;
            color: #fff !important;
            text-decoration: none;
            border-radius: 6px;
            font-weight: bold;
            margin-top: 16px;
        }
        .footer {
            font-size: 12px;
            color: #6b7280;
            margin-top: 24px;
            font-style: italic; 
        }
        .lampiran {
            margin-top: 16px;
        }
        .lampiran img {
            max-width: 100%;
            border-radius: 6px;
            margin-top: 8px;
            border: 1px solid #ddd;
        }
    </style>
</head>
<body>
    <div class="container">
        <h2>📢 <?php echo e($judul); ?></h2>

        
        <pre><?php echo e($isi); ?></pre>

        
        <?php if(!empty($foto)): ?>
            <div class="lampiran">
                <p>📎 Lampiran:</p>
                <img src="<?php echo e(url('storage/'.$foto)); ?>" alt="Lampiran Audit" onerror="this.style.display='none'; this.insertAdjacentHTML('afterend','<a class=\'btn\' href=\'<?php echo e(url('storage/'.$foto)); ?>\' target=\'_blank\'>Lihat Gambar</a>');">
            </div>
        <?php endif; ?>

        
        <p>
            <a class="btn" href="<?php echo e(url('/')); ?>" target="_blank">Buka Sistem Audit 5S</a>
        </p>

        <div class="footer">
            Email ini dikirim otomatis oleh sistem Audit 5S.  
            Mohon tidak membalas email ini secara langsung.
        </div>
    </div>
</body>
</html>
<?php /**PATH C:\xampp\htdocs\ea-systems\resources\views/emails/notifikasi.blade.php ENDPATH**/ ?>