<?php

namespace email\templates;

use email\helpers\email_template;

class email_template_footer
{
    use email_template;

    public function generate_text(): string
    {
        return "Truckwash ApS | CVR: 41004355 | https://truckwash.dk | Send os en email på cph@truckwash.dk - Ring til os på (+45) 43 71 78 86";
    }

    public function generate_html(): string
    {
        ob_start();
        # Start of the html
        ?>

        <!-- Footer with Outlook Classic support -->
        <table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin:0;padding:0;">
            <tr>
                <td align="center" style="padding:24px 0 0 0;">
                    <!--[if mso]>
                    <table role="presentation" width="600" cellspacing="0" cellpadding="0" border="0">
                        <tr>
                            <td align="center">
                    <![endif]-->
                    <div style="max-width:600px;margin:0 auto;">
                        <img src="https://usercontent.one/wp/www.truckwash.dk/wp-content/uploads/2021/04/truckwash-banner-png.png"
                             alt="Truck Wash logo" width="150"
                             style="width:25%;max-width:150px;height:auto;display:block;margin:0 auto 10px auto;line-height:0;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;">
                        <p style="margin:0 0 8px 0;text-align:center;mso-line-height-rule:exactly;line-height:150%;font-family:Arial, sans-serif;font-size:14px;color:#000000;">
                            <a href="https://truckwash.dk/" style="color:#000000;text-decoration:none;">Truckwash ApS</a> |
                            <a href="https://datacvr.virk.dk/enhed/virksomhed/41004355" style="color:#000000;text-decoration:none;"> CVR: 41004355</a> |
                            <a href="https://truckwash.dk/" style="color:#000000;text-decoration:none;">https://truckwash.dk</a>
                        </p>
                        <p style="margin:0 0 8px 0;text-align:center;mso-line-height-rule:exactly;line-height:150%;font-family:Arial, sans-serif;font-size:14px;color:#000000;">
                            <a href="mailto:cph@truckwash.dk" style="color:#000000;text-decoration:none;">Send os en email på cph@truckwash.dk</a>
                            &nbsp;-&nbsp;
                            <a href="tel:+4543717886" style="color:#000000;text-decoration:none;">Ring til os på (+45) 43 71 78 86</a>
                        </p>
                    </div>
                    <!--[if mso]>
                            </td>
                        </tr>
                    </table>
                    <![endif]-->
                </td>
            </tr>
        </table>

        <?php
        # End of the html
        return ob_get_clean();
    }
}