<?php

use WpBookingPro\Factory;
$doc= Factory::getDocument();
// $doc->addStyleSheet('admin_woopanel/app/assets/nb-font-icon/nb-font-icon.css');

$review = $this->item;
?>
<div class="view-review-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="detail" role="tab"
                                                          data-toggle="tab"> <?php esc_html_e('Review 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 echo($this->form->renderField('name')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo($this->form->renderField('email')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo($this->form->renderField('title')) ?>
                        </div>
                    </div>
                    <?php if($review->service_id) {?>
                    <div class="row">
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('rating_ambience')) ?>
                        </div>
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('rating_cleanliness')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('rating_staff')) ?>
                        </div>
                        <div class="col-md-6">
                            <?php echo($this->form->renderField('rating_value')) ?>
                        </div>
                    </div>
                    <?php } elseif($review->user_id) {?>
                        <div class="row">
                            <div class="col-md-12">
                                <?php echo($this->form->renderField('rating_vendor')) ?>
                            </div>
                        </div>

                    <?php }?>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo($this->form->renderField('published')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo($this->form->renderField('comments')) ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
		<?php echo ($this->form->renderField('id')) ?>
        <input type="hidden" name="task" value="state.save">
    </form>
</div>
