<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Your Ad Has Been Successfully Posted on Luqia!</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            margin: 0;
            padding: 0;
        }
        .email-container {
            max-width: 600px;
            margin: 20px auto;
            padding: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
            background-color: #f9f9f9;
        }
        .email-header {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 20px;
        }
        .email-body {
            margin-bottom: 20px;
        }
        .email-footer {
            font-size: 14px;
            color: #555;
        }
    </style>
</head>
<body>
    <div class="email-container">
        <div class="email-header">
            Dear {{$name}},
        </div>
        <div class="email-body">
            <p>Thank you for posting your ad on Luqia! We're excited to help you reach more potential buyers. Here are the details of your listing:</p>
            <p>
                Ad Title: {{$ad->title??'N/A'}}<br>
                Ad Category: {{$ad->category->name??'N/A'}}<br>
                Ad Plan: {{$ad->plan->name??'N/A'}}<br>
            </p>
            <p>Your ad is now live and visible to users on the platform.</p>
            <p>You can manage or edit your ad anytime by logging into your account.</p>
            <p>Thanks for choosing Luqia— we wish you great success with your listing!</p>
        </div>
        <div class="email-footer">
            Warm regards,<br>
            The Luqia Team
        </div>
    </div>
</body>
</html>