<?php
$doc = Factory::getDocument();
$doc->addLessStyleSheet('admin/nb_apps/nb_woobooking/assets/less/view_config.less');
?>
<div class="view-config-form">
    <form action="#" name="admin-form" method="post">
        <div>
            <ul class="event-tab nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a href="#basic" aria-controls="home" role="tab"
                                                          data-toggle="tab"><?php esc_attr_e('Basic','wpbookingpro')?></a></li>
                <li role="presentation"><a href="#booking" aria-controls="profile" role="tab"
                                           data-toggle="tab"><?php esc_attr_e('Booking','wpbookingpro')?></a></li>
            </ul>
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="basic">
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo($this->form->renderField('booking_style','params')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo($this->form->renderField('complete_order_status_id','params')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('open_time','params')) ?>
                        </div>
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('close_time','params')) ?>
                        </div>
                    </div>

                    <div class="clearfix"></div>
                </div>
                <div role="tabpanel" class="tab-pane" id="booking">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="tool-bar pull-right">
                    <button class="btn btn-primary" type="submit"><i class="fas fa-save"></i><span><?php esc_attr_e('Save','wpbookingpro')?></span></button>
                </div>
            </div>
        </div>
        <input type="hidden" name="task" value="config.save" />
    </form>
</div>
<?php
$doc->addScriptApplySelector('.view-config-form','view_config_form',array(
),'admin/nb_apps/nb_woobooking/assets/js/view_config_form.js');
