<?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');
?>
<?= form_open(current_url() . '?redir=' . $redir, ['class' => 'form-horizontal']) ?>
<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('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 class="form-group">
    <?= lang('location', [], 'location', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_input('location', $data['location'], ['class' => 'form-control']) ?>
    </div>
</div>
<div class="form-group">
    <?= lang('card_name', [], 'card_name', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_input('card_name', $data['card_name'], ['class' => 'form-control']) ?>
    </div>
</div>
<div class="form-group">
    <?= lang('info_tambahan', [], 'info_tambahan', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_textarea('info_tambahan', $data['info_tambahan'], ['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('optic', [], 'optic', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_input('optic', $data['optic'], ['class' => 'form-control']) ?>
    </div>
</div>

<div class="form-group">
    <?= lang('province', [], 'province', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_input('province', $data['province'], ['class' => 'form-control']) ?>
    </div>
</div>

<div class="form-group">
    <?= lang('city', [], 'city', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_input('city', $data['city'], ['class' => 'form-control']) ?>
    </div>
</div>

<div class="form-group">
    <?= lang('district', [], 'district', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_input('district', $data['district'], ['class' => 'form-control']) ?>
    </div>
</div>

<div class="form-group">
    <?= lang('sub_district', [], 'sub_district', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_input('sub_district', $data['sub_district'], ['class' => 'form-control']) ?>
    </div>
</div>

<div class="form-group">
    <?= lang('poscode', [], 'poscode', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_input('poscode', $data['poscode'], ['class' => 'form-control']) ?>
    </div>
</div>

<div class="form-group">
    <?= lang('address', [], 'address', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_textarea('address', $data['address'], ['class' => 'form-control']) ?>
    </div>
</div>
<div class="form-group">
    <?= lang('pax', [], 'pax', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_input('pax', $data['pax'], ['class' => 'form-control']) ?>
    </div>
</div>
<div class="form-group">
    <?= lang('pax_name', [], 'pax_name', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_input('pax_name', $data['pax_name'], ['class' => 'form-control']) ?>
    </div>
</div>
<div class="form-group">
    <?= lang('pax_email', [], 'pax_email', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_input('pax_email', $data['pax_email'], ['class' => 'form-control']) ?>
    </div>
</div>
<div class="form-group">
    <?= lang('pax_phone', [], 'pax_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('pax_phone', $data['pax_phone'], ['class' => 'form-control']) ?>
        </div>
    </div>
</div>
<div class="form-group">
    <?= lang('status', [], 'status', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_dropdown('status', User_data_model::status_label(), $data['status'], ['class' => 'form-control']) ?>
    </div>
</div>
<div class="form-group">
    <div class="col-sm-9 col-sm-offset-3">
        <?= form_submit('submit', 'Submit', ['class' => 'btn blue']) ?>
    </div>
</div>
<?= form_close() ?>