<div class="card p-2 shadow-sm border-bottom-primary">
    <div class="card-header bg-white">
        <h4 class="h5 align-middle m-0 font-weight-bold text-primary">
            Perfil de <?= userdata('name');?>
        </h4>
    </div>
    <div class="card-body">
        <div class="row">
            <div class="col-md-2 mb-4 mb-md-0">
                <img src="<?= base_url() ?>assets/img/avatar/<?= userdata('foto'); ?>" alt="" class="img-thumbnail rounded mb-2">
                <a href="<?= base_url('profile/setting'); ?>" class="btn btn-sm btn-block btn-primary"><i class="fa fa-edit"></i> Modificar Perfil</a>
                <a href="<?= base_url('profile/password'); ?>" class="btn btn-sm btn-block btn-primary"><i class="fa fa-lock"></i> Modificar Password</a>
            </div>
            <div class="col-md-10">
                <table class="table">
                <tr>
                        <th>Entidad (Empresa)</th>
                        <td> <strong> <?= entitydata(); ?> </strong> </td>
                    </tr>
                    <tr>
                        <th width="200">Nombre Usuario <br/> (Login Sistema)</th>
                        <td><?= userdata('username'); ?></td>
                    </tr>
                    <tr>
                        <th width="200">Nombre Completo</th>
                        <td><?= userdata('name'); ?></td>
                    </tr>
                    <tr>
                        <th>Email</th>
                        <td><?= userdata('email'); ?></td>
                    </tr>
                    <tr>
                        <th>Teléfono</th>
                        <td><?= userdata('no_telp'); ?></td>
                    </tr>
                   
                    <tr>
                        <th>RUT</th>
                        <td><?= userdata('rut'); ?></td>
                    </tr>
                    <tr>
                        <th>Grupo</th>
                        <td class="text-capitalize"><?php if(userdata('role') =='admin') { echo "Administrador";} else {echo"Abogado";} ?></td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>