<?php
class Mail{

    //New Admin Created
    public function new_admin_registered($logo, $admin_name, $admin_email){
        $result = 0;

        $result = "
        <!DOCTYPE html>
        <html>
        <head>
        <title></title>
        </head>
        <body>
        <div style='width:500px;margin:0 auto;'>
        <div style='text-align:center;'>
            <img src='".$logo."' alt='logo' style='max-width: 100%;width: 250px;'>
        </div>
        <br><br>
        <div>
        Dear Admin Warehouse,
        <br><br>
        There is new admin registered in our Ruas Management System
        <br><br>
        With Name ".$admin_name." and Email ".$admin_email.".
        <br><br>
        </div>
        <em>*Do not reply to this e-mail.<br/><br/>Thank you!</em>
        </div>
        </body>
        </html>
        ";

        return $result;
    }

    //Mail for create new user
    public function mail_create_user($logo,$user_name,$link_url){
        $result = 0;

        $result = "
        <!DOCTYPE html>
        <html>
        <head>
        <title></title>
        </head>
        <body>
        <div style='width:500px;margin:0 auto;'>
        <div style='text-align:center;'>
            <img src='".$logo."' alt='logo'  style='max-width: 100%;width: 250px;'>
        </div>
        <br><br>
        <div>
        Dear ".$user_name.",
        <br><br>
        Ruas Management System.
        <br><br>
        The administrator has invited you to join.
        <br><br>
        <a href='".$link_url."' style='padding:6px 25px;background-color:#f26723;display:inline-block;color:#ffffff;text-decoration:none !important;'>
        Activate Account
        </a><br><br>
        </div>
        <em>*Do not reply to this e-mail.<br/><br/>Thank you!</em>
        </div>
        </body>
        </html>
        ";

        return $result;
    }
    //Mail Success Activation
    public function mail_success_activation($logo,$user_name,$password){
        $result = 0;

        $result = "
        <!DOCTYPE html>
        <html>
        <head>
        <title></title>
        </head>
        <body>
        <div style='width:500px;margin:0 auto;'>
        <div style='text-align:center;'>
            <img src='".$logo."' alt='logo' style='max-width: 100%;width: 250px;'>
        </div>
        <br><br>
        <div style='text-align:center;'>
        Dear ".$user_name.",
        <br><br>
        Thank you for Activating your account.
        <br><br>
        This is your Ruas Management System password
        <br><br>
        <span style='color:#f26723;'>".$password."</span>
        <br><br>
        </div>
        <em>*Do not reply to this e-mail.<br/><br/>Thank you!</em>
        </div>
        </body>
        </html>
        ";

        return $result;
    }
    //Forget Password
    public function forget_password($logo, $email, $link_url){
        $result = 0;

        $result = "
        <!DOCTYPE html>
        <html>
        <head>
        <title></title>
        </head>
        <body>
        <div style='width:500px;margin:0 auto;'>
        <div style='text-align:center;'>
            <img src='".$logo."' alt='logo' style='max-width: 100%;width: 250px;'>
        </div>
        <br><br>
        <div>
        Dear Admin RMS,
        <br><br>
        This is your reset password link.
        <br><br>
        <a href='".$link_url."' style='padding:6px 25px;background-color:#f26723;display:inline-block;color:#ffffff;text-decoration:none !important;'>
        Reset Password
        </a><br><br>
        </div>
        <em>*Do not reply to this e-mail.<br/><br/>Thank you!</em>
        </div>
        </body>
        </html>
        ";

        return $result;
    }
    //Mail Reset Password
    public function reset_password_mail($logo,$user_name,$password){
        $result = 0;

        $result = "
        <!DOCTYPE html>
        <html>
        <head>
        <title></title>
        </head>
        <body>
        <div style='width:500px;margin:0 auto;'>
        <div style='text-align:center;'>
            <img src='".$logo."' alt='logo' style='max-width: 100%;width: 250px;'>
        </div>
        <br><br>
        <div style='text-align:center;'>
        Dear ".$user_name.",
        <br><br>
        This is your new Ruas Management System password
        <br><br>
        <span style='color:#f26723;'>".$password."</span>
        <br><br>
        </div>
        <em>*Do not reply to this e-mail.<br/><br/>Thank you!</em>
        </div>
        </body>
        </html>
        ";

        return $result;
    }
}
?>