<?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');
?>
<?php if (!$user) : ?>
    <p>Visitor tidak dapat ditemukan</p>
<?php else : ?>
    <div class="table-responsive">
        <table class="table table-hover table-borderless">
            <tr>
                <td colspan="2" style="text-align:center;">
                    <img src="<?= base_url("../img/qr/{$user->identity}.png") ?>" class="img img-responsive img-thumbnail" onclick="ajax_script.show_img(this);" data-title="<?= $user->profile->name ?>" />
                </td>
            </tr>
            <tr>
                <td>Identity</td>
                <td><?= $user->identity ?></td>
            </tr>
            <tr>
                <td>Name</td>
                <td><?= $user->profile->name ?></td>
            </tr>
            <tr>
                <td>Name Tag</td>
                <td><?= $user->profile->card_name ?></td>
            </tr>
            <tr>
                <td>Optic</td>
                <td><?= $user->profile->optic ?></td>
            </tr>
        </table>
    </div>
<?php endif; ?>