<?php
/*
 * *************************************************
 * Copyright (C) 2021 Earworks.                    *
 * Codeigniter Project Template Modification       *
 * Please contact our email for more information : *
 * contact@earworks.co.id                          *
 * *************************************************
 */
defined('BASEPATH') OR exit('No direct script access allowed');
if (strtolower($profile['location']) == 'jakarta') {
    $url = 'img/banner.jpg';
} elseif (strtolower($profile['location']) == 'surabaya') {
    $url = 'img/banner.jpg';
} elseif (strtolower($profile['location']) == 'medan') {
    $url = 'img/banner.jpg';
} else {
    $url = 'img/banner.jpg';
}
?>
<tr>

    <td style="">

        <img style="width: 100%;display: inline-block;vertical-align: middle;" src="<?php echo base_url($url) ?>">

    </td>

</tr>

<tr>

    <td style="background-color:#fff;padding:20px;-webkit-border-bottom-left-radius:6px;-moz-border-bottom-left-radius:6px;-o-border-bottom-left-radius:6px;-ms-border-bottom-left-radius:6px;border-bottom-left-radius:6px;-webkit-border-bottom-right-radius:6px;-moz-border-bottom-right-radius:6px;-o-border-bottom-right-radius:6px;-ms-border-bottom-right-radius:6px;border-bottom-right-radius:6px;">

        <div style="text-align:justify;max-width:480px;display:block;margin:0px auto;word-wrap: break-word;">

            <p style="text-align:justify;max-width:540px;width:100%;text-align: left;">
                Kepada Bapak/ Ibu <strong><?= $profile['name'] ?></strong>,
            </p>
            <p style="text-align:justify;max-width:540px;width:100%;text-align: left;">
                Terima kasih atas verifikasi data Anda untuk acara Astra Honda Motor Group Customer Appreciation 2023.
            </p>
            <div style="max-width:540px;display:block;width:100%;margin:15px auto;">
                <table style="width:100%;">
                    <tr>
                        <td>Hari/Tanggal</td>
                        <td>:</td>
                        <td>
                            <?php if (strtolower($profile['location']) == 'jakarta') : ?>
                                Selasa, 5 Desember 2023
                            <br>18:00 - 21:00
                            <?php elseif (strtolower($profile['location']) == 'surabaya') : ?>
                                Selasa, 5 Desember 2023
                            <br>18:00 - 21:00
                            <?php elseif (strtolower($profile['location']) == 'medan') : ?>
                                Selasa, 5 Desember 2023
                            <br>18:00 - 21:00
                            <?php else : ?>
                                Selasa, 5 Desember 2023
                            <br>18:00 - 21:00
                            <?php endif; ?>
                        </td>
                    </tr>
                    <tr>
                        <td>Tempat</td>
                        <td>:</td>
                        <td>
                            <?php if (strtolower($profile['location']) == 'jakarta') : ?>
                                Mutiara Ballroom, JW Marriott Hotel<br>
                            Jl. Mega Kuningan Barat No.1<br>
                            Kuningan, Jakarta 12950
                            <?php elseif (strtolower($profile['location']) == 'surabaya') : ?>
                                Mutiara Ballroom, JW Marriott Hotel<br>
                            Jl. Mega Kuningan Barat No.1<br>
                            Kuningan, Jakarta 12950
                            <?php elseif (strtolower($profile['location']) == 'medan') : ?>
                                Mutiara Ballroom, JW Marriott Hotel<br>
                            Jl. Mega Kuningan Barat No.1<br>
                            Kuningan, Jakarta 12950
                            <?php else : ?>
                                Mutiara Ballroom, JW Marriott Hotel<br>
                            Jl. Mega Kuningan Barat No.1<br>
                            Kuningan, Jakarta 12950
                            <?php endif; ?>
                        </td>
                    </tr>
                    <tr>
                        <td>Dress Code</td>
                        <td>:</td>
                        <td>Business Casual (Atasan warna terang, contoh: Putih atau Biru Terang)</td>
                    </tr>
                </table>
            </div>
            <p style="text-align:justify;max-width:540px;width:100%;">
                Registrasi akan dimulai pada pukul 17:00.
            </p>
            <p style="text-align:justify;max-width:540px;width:100%;">
                Berikut adalah kode QR milik Anda. Kode ini dapat anda simpan dengan 
                screenshot atau klik tombol download. Apabila anda mendaftar lebih dari 1 orang, 
                maka kode QR akan diterima pada e-mail masing-masing peserta.
            </p>
            <br />
            <img src="<?= base_url('img/qr/' . $user['identity'] . '_share.png') ?>" style="width:100%;height:auto;" />
            <br /><br />
            <a href="<?= base_url('dashboard/download/' . $user['identity'] . '?uid=' . $user['id']) ?>" style="background: #052232;font-size: 16px;padding: 12px;color: #fff;text-decoration: none;border: none;border-radius: 4px;-moz-border-radius: 4px;-webkit-border-radius: 4px;width:100%;text-align:center;display:block;box-sizing:border-box;">
                Download QR Code
            </a>

        </div>

    </td>

</tr>

<!--                <tr>

                    <td style="padding:5px"></td>

                </tr>

                <tr>

                    <td style="background-color:#fff;padding:20px;margin-top:5px;text-align:center;font-size:14px;-webkit-border-radius:6px;-moz-border-radius:6px;-o-border-radius:6px;-ms-border-radius:6px;border-radius:6px;">

                        copyright &copy; <?php echo date('Y') ?>

                    </td>

                </tr>-->
