<?php

namespace App\Helpers;

class MessageContent
{
    /**
     * Welcome email message content.
     *
     * @param string $name
     * @return string
     */

    public static function newsletterEmail()
    {
        return '
            <!DOCTYPE html>
            <html lang="en">
                <head>
                    <meta charset="UTF-8">
                    <title>Thank You</title>
                    <meta name="viewport" content="width=device-width, initial-scale=1.0">
                </head>
                <body style="margin:0; padding:0; background-color:#F3F7FA; font-family:Arial, sans-serif;">
                    <table width="100%" bgcolor="#F3F7FA" cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="center" style="padding: 40px 16px;">
                                <table width="100%" cellpadding="0" cellspacing="0" style="max-width:600px; background-color:#ffffff; border-radius:8px; padding:32px;">

                                <!-- Logo -->
                                <tr>
                                    <td align="center" style="padding-bottom: 24px;">
                                    <img src="https://4colourss.com/assets/images/logo.png" alt="4colourss logo" width="140" style="display:block; margin:auto;">
                                    </td>
                                </tr>

                                <!-- Thank You Graphic -->
                                <tr>
                                    <td align="center" style="padding-bottom: 24px;">
                                    <img src="https://4colourss.com/assets/images/newsletterimage1.png" alt="Thank You" width="300" style="display:block; margin:auto;">
                                    </td>
                                </tr>

                                <!-- Hero Image -->
                                <tr>
                                    <td align="center" style="padding-bottom: 32px;">
                                    <img src="https://4colourss.com/assets/images/newsletterimage2.png" alt="Happy customer" width="100%" style="max-width:500px; border-radius:8px; display:block;">
                                    </td>
                                </tr>

                                <!-- Text -->
                                <tr>
                                    <td align="center" style="color:#111827; font-size:16px; line-height:1.6; padding: 0 16px;">
                                    <p style="margin-bottom: 16px;">
                                        Thank you for subscribing! We’re thrilled to have you on board. 🎉<br>
                                        You’ll be the first to know once we’re up and running — exciting things are coming your way soon!
                                    </p>
                                    <p>
                                        In the meantime, feel free to follow us on our social media platforms for updates and sneak peeks.
                                    </p>
                                    </td>
                                </tr>

                                <!-- Social Icons -->
                                <tr>
                                    <td align="center" style="padding-top: 24px;">
                                        <a href="https://x.com/4colourss?t=Wprmg37IxLndsOBltMqWeQ&s=09" style="margin: 0 8px;">
                                            <img src="https://cdn-icons-png.flaticon.com/512/733/733579.png" alt="Twitter" width="24">
                                        </a>
                                        <a href="https://www.instagram.com/4colourssltd?igsh=enByYTNmancwc2o=" style="margin: 0 8px;">
                                            <img src="https://cdn-icons-png.flaticon.com/512/2111/2111463.png" alt="Instagram" width="24">
                                        </a>
                                        <a href="https://www.linkedin.com/posts/4colourss_4colourss-brandstrategy-startupbusiness-activity-7315330713220751360-89BI?utm_source=share&utm_medium=member_desktop&rcm=ACoAACXHaQQBh-BSP6pUyVR9Pe7GhzOjTOWeyso" style="margin: 0 8px;">
                                            <img src="https://cdn-icons-png.flaticon.com/512/174/174857.png" alt="LinkedIn" width="24">
                                        </a>
                                    </td>
                                </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </body>
            </html>
        ';
    }

    public static function welcomeEmail($name)
    {
        return "
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Welcome to <b>ABS Vendor</b>, your trusted platform for gadgets and bill payments!</p>
            <br/>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Hi, {$name}, we’re thrilled to have you join our community. Start exploring now!</p>
            <br/>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>If you have any questions or need assistance, feel free to reach out.</p>
        ";
    }

    /**
     * Verification OTP email message content.
     *
     * @param string $otpCode
     * @return string
     */
    public static function verificationOtpEmail($otpCode)
    {
        return "
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Welcome to <b>ABS Vendor</b>, your trusted platform for gadgets and bill payments!</p>
            <br/>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>To complete your registration, please use the OTP code below:</p>
            <p class='bold' style='margin-top: 15px; color: #CB997E; font-weight: 700; line-height: 30px; font-size: 36px; letter-spacing: 10px; text-align: center;'>
                {$otpCode}
            </p>
            <p class='details' style='line-height: 30px; font-size: 16px; margin: 0;'>
                This code is valid for the next 10 minutes, so be sure to finalize your setup soon.
            </p>
            <br/>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>
                Need help? Our team is here for you – feel free to reach out if you have any questions or need assistance.
            </p>
        ";
    }

    /**
     * BVN Verification OTP email message content.
     *
     * @param string $otpCode
     * @return string
     */
    public static function verifyBvnOtp($name, $otpCode)
    {
        return "
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Hi {$name},</p>
            <br/>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Thank you for completing your BVN verification with <b>ABS Vendor</b>.</p>
            <br/>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>To complete your KYC process and verify your identity, please use the OTP code below:</p>
            <p class='bold' style='margin-top: 15px; color: #CB997E; font-weight: 700; line-height: 30px; font-size: 36px; letter-spacing: 10px; text-align: center;'>
                {$otpCode}
            </p>
            <p class='details' style='line-height: 30px; font-size: 16px; margin: 0;'>
                This code is valid for the next 10 minutes, so please make sure to complete your KYC verification soon.
            </p>
            <br/>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>
                Need help? Our team is here to assist you. Feel free to reach out if you have any questions or need support.
            </p>
        ";
    }


    /**
     * Reset password email message content.
     *
     * @param string $resetLink
     * @return string
     */
    public static function resetPasswordEmail($resetLink)
    {
        return "
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>You requested to reset your password for <b>ABS Vendor</b>.</p>
            <br/>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Click the link below to reset your password:</p>
            <p style='margin-top: 15px; text-align: center;'>
                <a href='{$resetLink}' style='color: #CB997E; font-weight: 700; text-decoration: none;'>Reset Password</a>
            </p>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>
                If you did not request this, please ignore this email.
            </p>
        ";
    }


    public static function signUpOtp(string $otpCode)
    {
        return " 
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Welcome to <b>ABS Vendor</b>, your trusted fashion marketplace!</p>
            </br>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>We’re thrilled to have you join our community, where we connect fashion enthusiasts
            with the finest African designs and more.</p></br>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>To complete your registration, please use the OTP code below:</p>
            <p class='bold' style='margin-top: 15px;color: #CB997E; font-weight: 700; line-height: 30px; font-size: 36px; letter-spacing: 10px; text-align: center;'>
            {$otpCode}</p>
            <p class='details' style='line-height: 30px; font-size: 16px; margin: 0;'>
            This code is valid for the next 10 minutes, so be sure to finalize your setup soon.</p>
            <br />
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>
                Need help? Our team is here for you – feel free to reach out if you have any questions or need assistance.</p>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>If you have any questions or need further assistance, feel free to reach out.</p>
        ";
    }

    public static function resetPasswordOtp($name, $otpCode)
    {
        return "
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Hi {$name},</p>
            <br/>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Forgot your password? Don’t worry, we’ve got you covered!</p>
            </br>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>You recently requested to reset your password for your <b>ABS Vendor</b> account.</p>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Use the token below to reset your password:</p>
            <p class='bold' style='margin-top: 15px;color: #CB997E; font-weight: 700; line-height: 30px; font-size: 36px; letter-spacing: 10px; text-align: center;'>
            {$otpCode}</p>
            <p class='details' style='line-height: 30px; font-size: 16px; margin: 0;'>
            This token is valid for the next 10 minutes. If you did not request a password reset, please ignore this message.</p>
            <br />
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>
                Need help? Our team is here for you – feel free to reach out if you have any questions or need assistance.</p>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Thank you for being part of the ABS Vendor community!</p>
        ";
    }


    public static function createAdminAccount(array $data)
    {
        return " 
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Hi {$data['name']},</p>
            <br/>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Welcome to <b>ABS Vendor</b>! We're excited to have you on board.</p>
            <br>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Your account has been successfully created. You can now sign in using the credentials below:</p>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'><strong>Email:</strong> {$data['email_address']}</p>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'><strong>Password:</strong> {$data['password']}</p>
            <br>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Please make sure you change your password as soon as you login, always keep your account secure and never share your password with others.</p>
            <br>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>If you did not request for this account, please contact our support team immediately for assistance.</p>
            <br>
            <p style='line-height: 30px; font-size: 16px; margin: 0;'>Thank you for choosing ABS Vendor. We’re here to ensure your experience is seamless and rewarding!</p>
        ";
    }
}
