<?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');
$loc = strtolower($model->location);
if ($loc == 'jakarta') {
    $url = '../img/banner.jpg';
} elseif ($loc == 'surabaya') {
    $url = '../img/banner.jpg';
} elseif ($loc == '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;">
                Selamat sore Bapak/ Ibu <strong><?= $profile['name'] ?></strong>,
            </p>
            <p style="text-align:justify;max-width:540px;width:100%;text-align: left;">
                Mohon izin reminder terkait dengan acara Group Customer Appreciation tahun 2023 yang akan diadakan pada:
            </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>
                        <strong>Selasa, 5 Desember 2023</strong>
                        </td>
                    </tr>
                    <tr>
                        <td>Waktu</td>
                        <td>:</td>
                        <td><strong>18:00 - 21:00 WIB</strong></td>
                    </tr>
                    <tr>
                        <td>Tempat</td>
                        <td>:</td>
                        <td><strong>Dua Mutiara Ballroom JW Marriott</strong></td>
                    </tr>
                    <tr>
                        <td>Alamat</td>
                        <td>:</td>
                        <td>Jalan DR Ide Anak Agung Gde Agung Kav E.1-2<br />No. 1 & 2, Kawasan Mega Kuningan, Kuningan Tim.,<br />Setia Budi, Kota Jakarta Selatan, DKI Jakarta
                        </td>
                    </tr>
                    <tr>
                        <td>Dress Code</td>
                        <td>:</td>
                        <td>L: Atasan Putih atau Biru & Bawahan Formal Gelap<br />P: Dress Terang Putih atau Biru</td>
                    </tr>
                    <tr>
                        <td>Main Course</td>
                        <td>:</td>
                        <td><?php if (isset($profile->main_course) && !empty($profile->main_course)) : ?><strong><?= $profile->main_course ?></strong><?php endif; ?></td>
                    </tr>
                    <tr>
                        <td>No. Meja</td>
                        <td>:</td>
                        <td><?php if (isset($profile->main_course) && !empty($profile->table)) : ?><strong><?= $profile->table ?></strong><?php endif; ?></td>
                    </tr>
                </table>
            </div>
            <p style="text-align:justify;max-width:540px;width:100%;">
                Terima kasih atas waktu dan kerjasamanya. Kami tunggu kehadiran Bapak/Ibu di acara kami 🙏
            </p>
            <p style="text-align:justify;max-width:540px;width:100%;">
                Berikut adalah kode QR milik Anda untuk registrasi dan masuk ke acara.
            </p>
            <br />
            <center><img src="<?= base_url('../img/qr/' . $user['identity'] . '.png') ?>" style="width:40%;height:auto;" /></center>
            <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>