<?php

use WpBookingPro\Factory;
use WpBookingPro\Html\ToolBar;
use WpBookingPro\Language\Text;
$doc = Factory::getDocument();
//report_wp_org
// $doc->addLessStyleSheet('admin/app/assets/less/view_form_config.less');
// $doc->addStyleSheet('admin_woopanel/app/assets/nb-font-icon/nb-font-icon.css');
?>
<div class="view-config-form">
    <form action="" name="admin-form" method="post" enctype= "multipart/form-data">
        <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_html_e('Basic','wpbookingpro') ?></a></li>
                <li role="presentation"><a href="#booking" aria-controls="profile" role="tab"
                                           data-toggle="tab"><?php esc_html_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-6">
                            <div class="block-basic-item">
                                <?php echo ($this->form->renderField('page_service_detail','params')) ?>
                                <?php echo(ToolBar::render_button_task("config.create_page_service_detail",wpbookingpro_get_content("Create page service detail"),$this->permission)) ?>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="block-basic-item">
                                <?php echo ($this->form->renderField('page_list_category','params')) ?>
                                <?php echo(ToolBar::render_button_task("config.create_page_list_category",wpbookingpro_get_content("Create page list category"),$this->permission)) ?>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="block-basic-item">
                                <?php echo ($this->form->renderField('page_list_service','params')) ?>
                                <?php echo(ToolBar::render_button_task("config.create_page_list_service",wpbookingpro_get_content("Create page list service"),$this->permission)) ?>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="block-basic-item">
                                <?php echo ($this->form->renderField('page_list_servicelocator','params')) ?>
                                <?php echo(ToolBar::render_button_task("config.create_page_list_servicelocator",wpbookingpro_get_content("Create page list servicelocator"),$this->permission)) ?>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="block-basic-item">
                                <?php echo ($this->form->renderField('page_list_vendor','params')) ?>
                                <?php echo(ToolBar::render_button_task("config.create_page_list_vendor",wpbookingpro_get_content("Create page list vendor"),$this->permission)) ?>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="block-basic-item">
                                <?php echo ($this->form->renderField('page_vendor_detail','params')) ?>
                                <?php echo(ToolBar::render_button_task("config.create_page_vendor_detail",wpbookingpro_get_content("Create page vendor detail"),$this->permission)) ?>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="block-basic-item">
                                <?php echo ($this->form->renderField('page_user_account','params')) ?>
                                <?php echo(ToolBar::render_button_task("config.create_page_user_account",wpbookingpro_get_content("Create page user account"),$this->permission)) ?>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="block-basic-item">
                                <?php echo ($this->form->renderField('page_login','params')) ?>
                                <?php echo(ToolBar::render_button_task("config.create_page_login",wpbookingpro_get_content("Create page login"),$this->permission)) ?>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="block-basic-item">
                                <?php echo ($this->form->renderField('page_signup','params')) ?>
                                <?php echo(ToolBar::render_button_task("config.create_page_signup",wpbookingpro_get_content("Create page sign up"),$this->permission)) ?>
                            </div>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div role="tabpanel" class="tab-pane" id="booking">
                    <div class="row">
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('booking_style','params')) ?>
                        </div>
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('order_status_config_when_scan','params')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('timezone','params')) ?>
                        </div>
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('default_groupuser_signup','params')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('request_payment','params')) ?>
                        </div>
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('google_map_api_key','params')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('client_secret_file','params')) ?>
                        </div>
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('default_currency','params')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <?php
                            $field = $this->form->getField('multi_product_in_cart','params');
                            echo ($field->input)
                            ?>
                        </div>
                        <div class="col-md-6">
                            <?php
                            $field = $this->form->getField('is_enable_add_google_calendar_api','params');
                            echo ($field->input)
                            ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <?php
                            $field = $this->form->getField('is_edit_sync_on_woommerce','params');
                            echo ($field->input)
                            ?>
                        </div>
                        <div class="col-md-6">
                            <?php
                            $field = $this->form->getField('is_enable_send_sms','params');
                            echo ($field->input)
                            ?>
                        </div>
                        <div class="col-md-6">
                            <?php
                            $field = $this->form->getField('is_enable_send_sms_employee','params');
                            echo ($field->input)
                            ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('radius_for_search','params')) ?>
                        </div>
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('unit_for_search','params')) ?>
                        </div>
                    </div>

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

        <input type="hidden" name="task" value="config.save">
    </form>
</div>
