<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
    <style>
        body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; }
        .container { max-width: 600px; margin: 20px auto; border: 1px solid #ddd; padding: 20px; border-radius: 10px; }
        .header { background: #007bff; color: #fff; padding: 10px; text-align: center; border-radius: 5px 5px 0 0; }
        .content { padding: 20px; }
        .footer { font-size: 0.8em; text-align: center; color: #777; margin-top: 20px; }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h2>New message from website form</h2>
        </div>
        <div class="content">
            <p><strong>Name</strong> {{ $data['name'] }}</p>
            <p><strong>Email</strong> {{ $data['email'] }}</p>
            <p><strong>Subject</strong> {{ $data['subject'] ?? 'No subject' }}</p>
            <p><strong>Message</strong></p>
            <p style="background: #f9f9f9; padding: 15px; border-right: 5px solid #007bff;">
                {{ $data['message'] }}
            </p>
        </div>
        <div class="footer">
            Sent from contact us page.
        </div>
    </div>
</body>
</html>