<section class="content">
    <div class="row">
        <div class="col-sm-12">
            <div class="tabbable">
                <div class="tab-content no-border padding-24">
                    <div class="tab-pane fade in active" id="faq-tab-1">
                        <div class="space-8"></div>
                        <div class="panel-group accordion-style1 accordion-style2" id="faq-list-1">
                            <div class="panel panel-default">
                                <div class="panel-headingnew"><?php echo $this->translate('Hotel Basic Tax'); ?> </div>
                                <div class="left_panel col-sm-12 padding_margin0 pull-left bgwhite">
                                    <?php //echo $this->partial('menu-sidebar.phtml'); ?>
                                    <div class="tab-content tab_editprofile col-sm-12 padding-left0 marginbott10px margintop10px">
                                        <div id="common-tab" class="tab-pane fade in tab_editprofile tab_editprofile1 active">
                                            <div class="col-sm-col-sm-offset-1 margin-10auto0 paddingRL10px">

                                                <?php
                                                $form = $this->form;
                                                $form->prepare();
                                                $form->setAttribute('action', $this->url('setting', ['action' => 'hoteltax']));
                                                $form->setAttribute('method', 'post');
                                                echo $this->form()->openTag($form);
                                                ?>

                                                <div class="row">
                                                    <div class="col-sm-12">
                                                        <div class="col-sm-12 col-md-12">
                                                            <div class="portlet-body">
                                                                <h4 class="tax_basic"><?php echo $this->translate('Tax'); ?></h4><br/>


<div class="row form-group" >
    <div class="col-sm-3 form-group">
        <h4>Booking Type</h4>
        <?php echo $this->FormElement($form->get('booking_type')->setValue(isset($taxFare['booking_type']) ? $taxFare['booking_type'] : '')); ?>                                                                       <?php echo $this->formElementErrors($form->get('booking_type'), ['class' => 'error']); ?>
    </div>                                        

    <div class="col-sm-1  form-group" style="width: 11% !important">
        <h4>SGST</h4>
        <div class="input-group col-sm-12 pull-left">
            <span class="input-group-addon taxPercent_basic" style="padding: 5px!important">%</span>
            <?php echo $this->formElement($form->get('sgst')->setValue(isset($taxFare['sgst']) ? $taxFare['sgst'] : '')); ?>
        </div>
        <?php echo $this->formElementErrors($form->get('sgst'), ['class' => 'error']); ?>
    </div>



    <div class="col-sm-1 form-group" style="width: 11% !important">
        <h4>CGST</h4>
        <div class="input-group col-sm-12 pull-left ">
            <span class="input-group-addon taxPercent_basic" style="padding: 5px!important">%</span>
            <?php echo $this->formElement($form->get('cgst')->setValue(isset($taxFare['cgst']) ? $taxFare['cgst'] : '')); ?>
        </div>
        <?php echo $this->formElementErrors($form->get('cgst'), ['class' => 'error']); ?>

    </div>



    <div class="col-sm-1 form-group" style="width: 11% !important">
        <h4>IGST</h4>
        <div class="input-group col-sm-12 pull-left">
            <span class="input-group-addon taxPercent_basic" style="padding: 5px!important">%</span>
            <?php echo $this->formElement($form->get('igst')->setValue(isset($taxFare['igst']) ? $taxFare['igst'] : '')); ?>
        </div>
        <?php echo $this->formElementErrors($form->get('igst'), ['class' => 'error']); ?>
    </div>


    <div class="col-sm-2 padding07px form-group">
        <h4>From Date</h4>    
        <?php echo $this->formElement($form->get('tax_date_from')->setValue(isset($taxFare['from_date']) ? date('d-m-Y', strtotime($taxFare['from_date'])) : '')); ?>
        <?php echo $this->formElementErrors($form->get('tax_date_from'), ['class' => 'error']); ?>
    </div>
    <div class="col-sm-2 padding07px form-group">
        <h4>To Date</h4>    
        <?php echo $this->formElement($form->get('tax_date_to')->setValue(isset($taxFare['to_date']) ? date('d-m-Y', strtotime($taxFare['to_date'])) : '')); ?>
        <?php echo $this->formElementErrors($form->get('tax_date_to'), ['class' => 'error']); ?>
    </div>


    <div class="col-sm-1 form-group">
        <h4>&nbsp;</h4>
        <?php echo $this->formElement($form->get('tax_fare_id')->setValue(isset($taxFare['id']) ? $taxFare['id'] : '')); ?>

        <input type="submit" name="tax_save" id="tax-save" class="save_data_btn btn btn-primary btn-new-vehile profile_save btn-warning" value="Save">
    </div>
</div>


                                                                <hr>


                                                                <h4 class="rounding_basic"><?php echo $this->translate('Rounding'); ?></h4>
                                                                <div class="col-sm-12 no-padding">
                                                                    <div class="col-sm-2 ">
                                                                        <div class="carbooking">
                                                                            <input type="radio" value="1" name="rounding" id="roundingCash" <?php
                                                                            if (isset($fareSetting['rounding']) && $fareSetting['rounding'] == 1) {
                                                                                echo 'checked="checked"';
                                                                            } else {
                                                                                echo 'checked="checked"';
                                                                            }
                                                                            ?>/>
                                                                            <label for="roundingCash"><span class="radio"><?php echo $this->translate('Cash'); ?></span></label>
                                                                        </div>

                                                                    </div>

                                                                    <div class="col-sm-3">
                                                                        <div class="carbooking">
                                                                            <input type="radio" value="2" name="rounding" id="roundingCredit" <?php
                                                                            if (isset($fareSetting['rounding']) && $fareSetting['rounding'] == 2) {
                                                                                echo 'checked="checked"';
                                                                            }
                                                                            ?>/>
                                                                            <label for="roundingCredit"><span class="radio"><?php echo $this->translate('Account / Credit Card'); ?></span></label>
                                                                        </div>
                                                                    </div>

                                                                </div>
                                                                <h4 class="level_basic"><?php echo $this->translate('Level'); ?></h4>
                                                                <div class="col-sm-12 no-padding">

                                                                    <div class="col-sm-2">
                                                                        <div class="carbooking">
                                                                            <input type="radio" value="1" name="level" id="levelRadio1" <?php
                                                                            if (isset($fareSetting['level']) && $fareSetting['level'] == 1) {
                                                                                echo 'checked="checked"';
                                                                            } else {
                                                                                echo 'checked="checked"';
                                                                            }
                                                                            ?>/>
                                                                            <label for="levelRadio1"><span class="radio"><?php echo $this->translate('Normal'); ?></span></label>
                                                                        </div>
                                                                    </div>

                                                                    <div class="col-sm-2">
                                                                        <div class="carbooking">
                                                                            <input type="radio" value="2" name="level" id="levelRadio2" <?php
                                                                            if (isset($fareSetting['level']) && $fareSetting['level'] == 2) {
                                                                                echo 'checked="checked"';
                                                                            }
                                                                            ?>/>
                                                                            <label for="levelRadio2"><span class="radio"><?php echo $this->translate('Decimal'); ?></span></label>
                                                                        </div>
                                                                    </div>

                                                                    <div class="col-sm-2">
                                                                        <div class="carbooking">
                                                                            <input type="radio" value="3" name="level" id="levelRadio3" <?php
                                                                            if (isset($fareSetting['level']) && $fareSetting['level'] == 3) {
                                                                                echo 'checked="checked"';
                                                                            }
                                                                            ?>/>
                                                                            <label for="levelRadio3"><span class="radio"><?php echo $this->translate('Unit'); ?></span></label>
                                                                        </div>
                                                                    </div>

                                                                </div>
                                                                <h4 class="direction_basic"><?php echo $this->translate('Direction'); ?></h4>
                                                                <div class="col-sm-12 no-padding">

                                                                    <div class="col-sm-2">
                                                                        <div class="carbooking">
                                                                            <input type="radio" value="1" name="direction" id="directionRadio1" <?php
                                                                            if (isset($fareSetting['direction']) && $fareSetting['direction'] == 1) {
                                                                                echo 'checked="checked"';
                                                                            } else {
                                                                                echo 'checked="checked"';
                                                                            }
                                                                            ?>/>
                                                                            <label for="directionRadio1"><span class="radio"><?php echo $this->translate('Nearest'); ?></span></label>
                                                                        </div>
                                                                    </div>

                                                                    <div class="col-sm-2">
                                                                        <div class="carbooking">
                                                                            <input type="radio" value="2" name="direction" id="directionRadio2" <?php
                                                                            if (isset($fareSetting['direction']) && $fareSetting['direction'] == 2) {
                                                                                echo 'checked="checked"';
                                                                            }
                                                                            ?>/>
                                                                            <label for="directionRadio2"><span class="radio"><?php echo $this->translate('Upward'); ?></span></label>
                                                                        </div>
                                                                    </div>

                                                                    <div class="col-sm-2">
                                                                        <div class="carbooking">
                                                                            <input type="radio" value="3" name="direction" id="directionRadio3" <?php
                                                                            if (isset($fareSetting['direction']) && $fareSetting['direction'] == 3) {
                                                                                echo 'checked="checked"';
                                                                            }
                                                                            ?>/>
                                                                            <label for="directionRadio3"><span class="radio"><?php echo $this->translate('Downward'); ?></span></label>
                                                                        </div>
                                                                    </div>

                                                                </div>


                                                                <div class="row ">
                                                                    <div class="col-sm-3"></div>
                                                                    <div class="col-sm-3"></div>

                                                                    <div class="col-sm-2 pull-right margin-bttom10px">
                                                                        <?php echo $this->formElement($form->get('tax_save')); ?>

                                                                    </div>

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

                                                    </div>
                                                </div>
                                                <?php echo $this->form()->closeTag(); ?>
                                                <span class="checkbox_error"></span>                                                
                                                <div class="panel panel-default">
                                                    <div class="panel-headingnew"> View/Update Records </div>
                                                    <div id="faq-1-3" class="panel-collapse collapse in" aria-expanded="false">
                                                        <div class="box">
                                                            <!-- /.box-header -->
                                                            <div class="box-body table-responsive listing-data">
                                                                <?php echo $this->partial('hotel-tax-listing.phtml'); ?>
                                                            </div>
                                                            <!-- /.box-body -->
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                        </div>

                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
        <!-- /.widget-box -->
    </div>
    <!-- /.col -->
</section>