<?php
$get_weak = [];
?>
<div id="room-rate" class="tab-pane  tab_editprofile1">
    <div class="col-sm-col-sm-offset-1 margin-10auto0 paddingRL10px">    

        <div class="row" id="add-div">					  
            <div class="col-sm-12">
                <h4>Contract Rate</h4>

                <div class="form-group clearfix margintopbottom20">
                    <label class="col-sm-3 control-label labelalign col-sm-3-new" id="vendor_type">
                        <?php echo $this->translate($this->formLabel($form->get('hotel_id'))); ?>
                    </label>
                    <div class="col-sm-3 col-sm-4-new">
                        <?php echo $this->FormElement($form->get('hotel_id')); ?>
                        <?php echo $this->formElementErrors($form->get('hotel_id'), ['class' => 'error']); ?>
                    </div>
                    
                    <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"> 
                        <?php echo $this->translate($this->formLabel($form->get('currency'))); ?>  
                    </label>
                    <div class="col-sm-4 col-sm-4-new">
                        <?php echo $this->FormElement($form->get('currency')); ?>
                        <?php echo $this->formElementErrors($form->get('currency'), ['class' => 'error']); ?>
                    </div>

                </div>

                <div class="form-group clearfix margintopbottom20">
                    <label class="col-sm-3 control-label labelalign col-sm-3-new" id="vendor_type">
                        <?php echo $this->translate($this->formLabel($form->get('vendor_type'))); ?>
                    </label>
                    <div class="col-sm-3 col-sm-4-new">
                        <?php echo $this->FormElement($form->get('vendor_type')); ?>
                        <?php echo $this->formElementErrors($form->get('vendor_type'), ['class' => 'error']); ?>
                    </div>
                    <label class="col-sm-3 control-label labelalign col-sm-3-new" id="vendor_name"> 
                        <?php echo $this->translate($this->formLabel($form->get('vendor_name'))); ?>
                    </label>
                    <div class="col-sm-3 col-sm-4-new">
                        <?php echo $this->FormElement($form->get('vendor_name')); ?>
                        <?php echo $this->formElementErrors($form->get('vendor_name'), ['class' => 'error']); ?>
                    </div>
                </div>

                <div class="form-group clearfix margintopbottom20">
                    <label class="col-sm-3 control-label labelalign col-sm-3-new" id="room_id">
                        <?php echo $this->translate($this->formLabel($form->get('room_id'))); ?>
                    </label>
                    <div class="col-sm-3 col-sm-4-new">
                        <?php echo $this->FormElement($form->get('room_id')); ?>
                        <?php echo $this->formElementErrors($form->get('room_id'), ['class' => 'error']); ?>
                    </div>

                    <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"> Rate Type  </label>
                                    <div class="col-sm-4 col-sm-4-new">
                                    	  <select class="form-control" id="rate-type">
                                    	 <option>Select Rate Type</option>
                                    	<option>Normal Rate</option>
                                        <option>2 Night Package</option>
                                         <option>4 Night Package</option>
                                          <option>7 Night Package</option>
                                       
                                       
                                    </select>
                                    
                                                                        
                                    </div>

                </div>
                
                 <div class="form-group clearfix margintopbottom20">
                                     <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"> Season Name<span  class="defaultcolor">*</span> </label>
                                    <div class="col-sm-3 col-sm-4-new">
                                     <select class="form-control">
                                     <option>All</option>
                                    	<option>Sparkling spring</option>
                                        <option>Bright Summer</option>
                                        <option>Dusky summer</option>
                                         <option>Dark winter</option>
                                       
                                    </select>
                                    </div>
                                     <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"> Rate Name  </label>
                                    <div class="col-sm-4 col-sm-4-new">
                                    	  <select class="form-control" id="rate-name">
                                    	 <option>Select Rate Name</option>
                                    	<option>Rate 1</option>
                                        <option>Rate 2</option>
                                         <option>Rate 3</option>
                                          
                                    </select>
                                    
                                                                        
                                    </div>
                                                                       
                                  </div>



                <div class="form-group clearfix margintopbottom20">
                    <label class="col-sm-3 control-label labelalign col-sm-3-new" for="valid_from">
                        <?php echo $this->translate($this->formLabel($form->get('valid_from'))); ?>
                    </label>
                    <div class="col-sm-3 col-sm-4-new">
                        <?php echo $this->FormElement($form->get('valid_from')); ?>
                        <?php echo $this->formElementErrors($form->get('valid_from'), ['class' => 'error']); ?>
                    </div>

                    <label class="col-sm-3 control-label labelalign col-sm-3-new" for="valid_to"> 
                        <?php echo $this->translate($this->formLabel($form->get('valid_to'))); ?>
                    </label>
                    <div class="col-sm-3 col-sm-4-new">                                    
                        <?php echo $this->FormElement($form->get('valid_to')); ?>
                        <?php echo $this->formElementErrors($form->get('valid_to'), ['class' => 'error']); ?>
                    </div>
                </div>




                <div class="form-group clearfix margintop20 marginbottom20">
                    <div class="col-sm-12">

                        <div class="col-sm-3 no-padding">
                            <div class="carbooking">
                                <input type="radio" name="typeofcommission" id="net-rate" checked="checked" value="net_rate"/>
                                <label for="net-rate"><span class="radio">Net rate</span></label>
                            </div>
                        </div>

                        <div class="col-sm-3">
                            <div class="carbooking">
                                <input type="radio" name="typeofcommission" id="commission-rate" value="commissionable_rate"/>
                                <label for="commission-rate"><span class="radio">Commissionable Rate</span></label>
                            </div>
                        </div>

                    </div>
                </div>   


                <div class="form-group clearfix margintopbottom20">

                    <label class="col-sm-1"><?php echo $this->translate('Weekend'); ?></label>

                    <?php foreach ($week_days['data'] as $week) { ?>
                        <div class="col-sm-1 radio_class">
                            <label class="booking-check"><?php echo $week['name']; ?>
                                <?php
                                if (count($get_weak) > 0) {
                                    if (in_array($week['id'], $get_weak)) {
                                        echo $this->FormElement($form->get('weekend[]')->setCheckedValue($week['id']));
                                        echo $this->FormElement($form->get('weekend[]')->setAttribute('checked', true));
                                    }
                                } else {
                                    echo $this->FormElement($form->get('weekend[]')->setCheckedValue($week['id']));
                                }
                                ?>

                                <span class="checkmark"></span>
                            </label>
                        </div>
<?php } ?>
<?php echo $this->formElementErrors($form->get('weekend[]'), ['class' => 'error']); ?>
                </div>


                <div class="form-group clearfix margintopbottom20">
                    <div class="box-body table-responsive">
<?php echo $this->partial('hotel-contract-rate.phtml'); ?>
<a class="btn btn-microsoft pointer" id="promotion-rate">Add Promotion Rate</a>
                    </div>
                </div>
<?php echo $this->partial('hotel-promotion-rate.phtml'); ?>
            </div>
        </div>
    </div>
</div>
