<?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');
Ci::set_title('VERIFIKASI');
?>
<section class="profile" style="position:relative;">
    <!--    <h1 class="page-title">
    <?= lang('account_information') ?>
            <hr class="hiasan-judul green" />
        </h1>-->
    <div style="display:flex;width:100%;justify-content: center;align-items:center;flex-direction: column;">
        <br />
        <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.
        </p>
        <style type="text/css">
            table th, table td{
                padding: 2px 3px;
            }
        </style>
        <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 dibuka pada pukul 17:00.
        </p>
        <br />
        <img src="<?= base_url('img/qr/' . $user['identity'] . '.png?v=' . time()) ?>" class="img img-responsive img-thumbnail" style="max-width:540px;" />
        <span style="width:100%;display:block;padding:15px;"></span>
        <a href="<?= base_url('dashboard/download/' . $user['identity'] . '?uid=' . $user['id']) ?>" class="btn btn-submit btn-block" style="max-width:540px;margin:0px auto;" target="_BLANK">
            Download QR Code
        </a>
        <span style="width:100%;display:block;padding:15px;"></span>
        <p style="text-align:justify;max-width:540px;width:100%;">
            Berikut adalah kode QR milik Anda. Kode ini dapat Anda simpan dengan 
            screenshot atau download. Kode ini juga sudah di kirimkan melalui e-mail
            anda yang terdaftar. Apabila Anda mendaftar lebih dari 1 orang, 
            maka kode QR akan diterima pada e-mail masing-masing peserta.
        </p>
        <span style="width:100%;display:block;padding:15px;"></span>
        <table class="table table-borderless" style="max-width:540px;">
            <tr>
                <td><?= lang('name') ?></td>
                <td><?= isset($profile['name']) && !empty($profile['name']) ? $profile['name'] : null ?></td>
            </tr>
            <tr>
                <td><?= lang('phone') ?></td>
                <td><?= isset($user['username']) && !empty($user['username']) ? '0' . $user['username'] : null ?></td>
            </tr>
            <tr>
                <td><?= lang('optic') ?></td>
                <td><?= isset($profile['optic']) && !empty($profile['optic']) ? $profile['optic'] : null ?></td>
            </tr>
            <?php if (isset($profile['table']) && !empty($profile['table'])) : ?>
                <tr>
                    <td><?= lang('table') ?></td>
                    <td><?= $profile['table'] ?></td>
                </tr>
            <?php endif; ?>
            <?php if (isset($profile['seat']) && !empty($profile['seat'])) : ?>
                <tr>
                    <td><?= lang('seat') ?></td>
                    <td><?= $profile['seat'] ?></td>
                </tr>
            <?php endif; ?>
        </table>
    </div>
</section>