<?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(lang('change_profile') . ': ' . $data['name']);
Ci::set_map(Ci::$title);
?>
<h1 class="page-title">
    <?= Ci::$title ?>
    <small></small>
</h1>
<div class="row">
    <div class="col-sm-6">

        <?= form_open(current_url() . '?redir=' . $redir, ['class' => 'form-horizontal']) ?>
        <div class="portlet light">
            <div class="portlet-title">
                <div class="caption caption-md">
                    <i class="icon-bar-chart font-dark hide"></i>
                    <span class="caption-subject font-dark bold uppercase"><?= lang('user_profile') ?></span>
                    <!--<span class="caption-helper">45 pending</span>-->
                </div>
            </div>
            <div class="portlet-body">
                <div class="form-group">
                    <?= lang('name', [], 'name', ['class' => 'col-sm-3 control-label']) ?>
                    <div class="col-sm-9">
                        <?= form_input('name', $data['name'], ['class' => 'form-control']) ?>
                    </div>
                </div>
                <div class="form-group">
                    <?= lang('email', [], 'email', ['class' => 'col-sm-3 control-label']) ?>
                    <div class="col-sm-9">
                        <?= form_input('email', $data['email'], ['class' => 'form-control']) ?>
                    </div>
                </div>
                <div class="form-group">
                    <?= lang('phone', [], 'phone', ['class' => 'col-sm-3 control-label']) ?>
                    <div class="col-sm-9">
                        <div class="input-group">
                            <div class="input-group-addon">+62</div>
                            <?= form_input('phone', $data['phone'], ['class' => 'form-control']) ?>
                        </div>
                    </div>
                </div>
            </div>
            <div class="portlet-title">
                <div class="caption caption-md">
                    <i class="icon-bar-chart font-dark hide"></i>
                    <span class="caption-subject font-dark bold uppercase"><?= lang('user_account') ?></span>
                    <!--<span class="caption-helper">45 pending</span>-->
                </div>
            </div>
            <div class="portlet-body">
                <div class="form-group">
                    <?= lang('old_password', [], 'old_password', ['class' => 'col-sm-3 control-label']) ?>
                    <div class="col-sm-9">
                        <?= form_password('old_password', $data['old_password'], ['class' => 'form-control']) ?>
                    </div>
                </div>
                <div class="form-group">
                    <?= lang('new_password', [], 'new_password', ['class' => 'col-sm-3 control-label']) ?>
                    <div class="col-sm-9">
                        <?= form_password('new_password', $data['new_password'], ['class' => 'form-control']) ?>
                    </div>
                </div>
                <div class="form-group">
                    <?= lang('confirm_password', [], 'confirm_password', ['class' => 'col-sm-3 control-label']) ?>
                    <div class="col-sm-9">
                        <?= form_password('confirm_password', $data['confirm_password'], ['class' => 'form-control']) ?>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-9 col-sm-offset-3">
                        <?= form_submit('submit', lang('Submit'), ['class' => 'btn btn-primary']) ?>
                    </div>
                </div>
            </div>
        </div>
        <?= form_close() ?>
    </div>
</div>
