<?php

use WpBookingPro\Factory;
use WpBookingPro\Language\Text;
?>
<div class="view-wbcustomer-form">
    <form action="" method="post" name="admin_woopanel-form" enctype="multipart/form-data">
        <div>
            <ul class="wbcustomer-tab nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab"
                                                          data-toggle="tab"> <?php esc_attr_e('Customer details','wpbookingpro') ?></a></li>
            </ul>
            <div class="tab-content">


                <div role="tabpanel" class="tab-pane active" id="detail">
                    <div class="row">
                        <div class="col-md-12">
                            <?php
                            $field = $this->form->getField('image');
                            echo ($field->input);
                            ?>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-6">
                            <div class="row">
                                <div class="col-md-6">
                                    <?php echo($this->form->renderField('first_name'))?>
                                </div>
                                <div class="col-md-6">
                                    <?php echo($this->form->renderField('opensource_user_id'))?>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <?php echo($this->form->renderField('email'))?>
                                </div>
                                <div class="col-md-6">
                                    <?php echo($this->form->renderField('gender'))?>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <?php echo($this->form->renderField('last_name'))?>
                                </div>
                                <div class="col-md-6">
                                    <?php echo($this->form->renderField('birth_day'))?>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <?php echo($this->form->renderField('mobile'))?>
                                </div>
                                <div class="col-md-6">
                                    <?php echo($this->form->renderField('user_id'))?>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <?php echo($this->form->renderField('address_1'))?>
                                </div>
                                <div class="col-md-6">
                                    <?php echo($this->form->renderField('address_2'))?>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <?php echo($this->form->renderField('city'))?>
                                </div>
                            </div>
                        </div>

                        <div class="col-md-6">
                            <div class="row">
                                <div class="col-md-12">
                                    <?php echo($this->form->renderField('note_internal'))?>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
		<?php echo ($this->form->renderField('id')) ?>
        <input type="hidden" name="task" value="wbcustomer.save">
    </form>
</div>
<?php
$doc = Factory::getDocument();
$doc->addLessStyleSheet('admin_woopanel/app/assets/less/view_form_customer.less');
$doc->addStyleSheet('admin_woopanel/app/assets/nb-font-icon/nb-font-icon.css');