<?php

use WpBookingEvent\Factory;
use WpBookingEvent\Html\WpBookingEventHtmlBackend;
use WpBookingEvent\Language\Text;
?>
<div class="view-package-form">
    <form action="" method="post" name="admin-form" enctype="multipart/form-data">

        <div>
            <ul class="state-tab nav nav-tabs" role="tablist">
                <li role="presentation" class="active">
                    <a href="#detail" aria-controls="home" role="tab" data-toggle="tab">
                        <?php esc_attr_e('Package detail','wpbookingevent') ?>
                    </a>
                </li>
                <li role="presentation">
                    <a href="#customize" aria-controls="profile" role="tab" data-toggle="tab">
                        <?php esc_attr_e('Customize','wpbookingevent') ?>
                    </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-12">
                            <?php echo($this->form->renderField('name')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('list_event_id')) ?>
                        </div>
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('tags')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo($this->form->renderField('description')) ?>
                        </div>
                    </div>
                </div>
                <div role="tabpanel" class="tab-pane" id="customize">
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo($this->form->renderField('package_color')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo($this->form->renderField('published')) ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
		<?php echo ($this->form->renderField('id')) ?>
        <input type="hidden" name="task" value="package.save">
    </form>
</div>
