<?php

use WpBookingPro\Factory;
use WpBookingPro\Language\Text;

$doc = Factory::getDocument();
//report_wp_org
// $doc->addStyleSheet('admin_woopanel/app/assets/nb-font-icon/nb-font-icon.css');
?>
<div class="view-activity-form">
    <form action="" name="admin-form" method="post" enctype="multipart/form-data">
        <div>
            <ul class="activity-tab nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a href="#detail" aria-controls="home" role="tab"
                                                          data-toggle="tab"><?php esc_html_e('Customize Detail','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('table_view');
                            if( isset($this->item->id) && $this->item->id)
                                    $field->__set('disabled',1);
                            ?>
                            <?php echo ($field->renderField()) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo ($this->form->renderField('label_field')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php
                            $field=$this->form->getField('field_name');
                            if( isset($this->item->id) && $this->item->id)
                                $field->__set('disabled',1);
                            ?>
                            <?php echo ($field->renderField()) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo ($this->form->renderField('type')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo ($this->form->renderField('description')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo ($this->form->renderField('default_value')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo ($this->form->renderField('backend')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo ($this->form->renderField('frontend')) ?>
                        </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')) ?>
    </form>
</div>
