<div class="content-wrapper">
    <section class="content-header">
        <h1>Nueva Empresa</h1>
    </section>

    <section class="content">
        <div class="row">
            <div class="col-md-10">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <strong>Registro de empresa</strong>
                    </div>
                    <div class="panel-body">

                        <?php echo validation_errors('<div class="alert alert-danger">', '</div>'); ?>

                        <form method="post" action="<?php echo base_url('index.php/configuracion/empresa/store'); ?>" enctype="multipart/form-data">
                            <div class="row">
                                <div class="col-md-6 form-group">
                                    <label>Nombre</label>
                                    <input type="text" name="nombre" class="form-control" value="<?php echo set_value('nombre'); ?>" required>
                                </div>
                                <div class="col-md-3 form-group">
                                    <label>Abreviado</label>
                                    <input type="text" name="abreviado" class="form-control" value="<?php echo set_value('abreviado'); ?>">
                                </div>
                                <div class="col-md-3 form-group">
                                    <label>RUC</label>
                                    <input type="text" name="ruc" class="form-control" maxlength="11" value="<?php echo set_value('ruc'); ?>" required>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-md-6 form-group">
                                    <label>Dirección fiscal</label>
                                    <input type="text" name="direccion_fiscal" class="form-control" value="<?php echo set_value('direccion_fiscal'); ?>">
                                </div>
                                <div class="col-md-3 form-group">
                                    <label>Teléfono</label>
                                    <input type="text" name="telefono" class="form-control" value="<?php echo set_value('telefono'); ?>">
                                </div>
                                <div class="col-md-3 form-group">
                                    <label>Cuenta detracción</label>
                                    <input type="text" name="ctadetraccion" class="form-control" value="<?php echo set_value('ctadetraccion'); ?>">
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-md-4 form-group">
                                    <label>Website</label>
                                    <input type="text" name="website" class="form-control" value="<?php echo set_value('website'); ?>">
                                </div>
                                <div class="col-md-4 form-group">
                                    <label>Email</label>
                                    <input type="email" name="email" class="form-control" value="<?php echo set_value('email'); ?>">
                                </div>
                                <div class="col-md-4 form-group">
                                    <label>Logo</label>
                                    <input type="file" name="logo" class="form-control">
                                </div>
                            </div>

                            <button type="submit" class="btn btn-primary">
                                <i class="fa fa-save"></i> Guardar
                            </button>

                            <a href="<?php echo base_url('index.php/configuracion/empresa'); ?>" class="btn btn-default">
                                Cancelar
                            </a>
                        </form>

                    </div>
                </div>
            </div>
        </div>
    </section>
</div>