<?php
/*
 * Copyright (c) 2018 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');
$this->load->title = $this->lang->line('change_profile');
$this->load->add_map($this->load->title);
$error = validation_errors();
?>
<?php if ($error) : ?>
    <div class="alert alert-danger">
        <button class="close" data-close="alert"></button>
        <span><?php echo $error ?></span>
    </div>
<?php endif; ?>
<?php echo form_open_multipart('backoffice/dashboard/profile') ?>
<div class="row">
    <div class="col-md-6 ">
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <div class="portlet light bordered">
            <div class="portlet-body form">
                <div class="form-body">
                    <div class="form-group">
                        <label class="control-label"><?php echo $this->lang->line('profilename') ?></label>
                        <?php
                        echo form_input(array(
                            'class' => 'form-control input-circle-right',
                            'name' => 'profilename',
                            'value' => (isset($input['profilename'])) ? $input['profilename'] : null
                        ));
                        ?>
                    </div>
                    <div class="form-group">
                        <label class="control-label"><?php echo $this->lang->line('profileaddress') ?></label>
                        <?php
                        echo form_input(array(
                            'class' => 'form-control input-circle-right',
                            'name' => 'profileaddress',
                            'value' => (isset($input['profileaddress'])) ? $input['profileaddress'] : null
                        ));
                        ?>
                    </div>
                    <div class="form-group">
                        <label class="control-label"><?php echo $this->lang->line('profilemobile') ?></label>
                        <?php
                        echo form_input(array(
                            'class' => 'form-control input-circle-right',
                            'name' => 'profilemobile',
                            'value' => (isset($input['profilemobile'])) ? $input['profilemobile'] : null
                        ));
                        ?>
                    </div>
                </div>
                <div class="form-actions">
                    <button type="submit" class="btn green">Submit</button>
                </div>

            </div>
        </div>
        <!-- END SAMPLE FORM PORTLET-->
    </div>
    <div class="col-md-6 ">
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <div class="portlet light bordered">
            <div class="portlet-body form">
                <div class="form-body">
                    <div class="form-group">
                        <label class="control-label"><?php echo $this->lang->line('profilepath') ?></label>
                        <?php
                        echo form_upload(array(
                            'autocomplete' => 'off',
                            'name' => 'profilepath'
                        ));
                        ?>
                    </div>
                    <div class="form-group">
                        <label class="control-label"><?php echo $this->lang->line('profilepathtitle') ?></label>
                        <?php
                        echo form_input(array(
                            'class' => 'form-control input-circle-right',
                            'name' => 'profilepathtitle',
                            'value' => (isset($input['profilepathtitle'])) ? $input['profilepathtitle'] : null
                        ));
                        ?>
                    </div>
                    <div class="form-group">
                        <label class="control-label"><?php echo $this->lang->line('profilepathalt') ?></label>
                        <?php
                        echo form_input(array(
                            'class' => 'form-control input-circle-right',
                            'name' => 'profilepathalt',
                            'value' => (isset($input['profilepathalt'])) ? $input['profilepathalt'] : null
                        ));
                        ?>
                    </div>
                </div>
            </div>
        </div>
        <!-- END SAMPLE FORM PORTLET-->
    </div>
</div>
<?php echo form_close(); ?>