<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" id="search_div">
                                <div class="panel-headingnew"> Add <?php echo $type;?> Markup </div>
                                <div id="faq-1-1" class="panel-collapse collapse in" aria-expanded="true">

                                    <div class="panel-body">

    <div class="tab-content" id="myTabContent">
        <div id="home" class="tab-pane fade active in">
            <div class="col-sm-col-sm-offset-1 margin-10auto0 paddingRL10px">

                <div class="row">
                    <div class="col-sm-10 no-padding">

                        <div id="markup_div" class="display-block">
                            <!-- /.panel-heading -->
                            <!--<div class="panel-heading tabheading text-center text-uppercase" > <b style="cursor:pointer;">Add Markup</b> </div>-->

                            <!-- Edit profile start -->
                            <?php

                            $form = $this->form;
                            $form->prepare();
                            $form->setAttribute('action', $this->url('markup', ['action' => 'add-markup-user']));
                            $form->setAttribute('method', 'post');
                            $form->setAttribute('id', 'markup-form');
                            echo $this->form()->openTag($form);
                            echo $this->FormElement($form->get('master_booking_type_id')->setvalue($masterBookType));
                            ?>
<div class="form-group clearfix margintopbottom20">
    <div class="col-sm-12 no-padding">


        <div class="col-sm-2">
            <div class="carbooking">
                <input type="radio" name="markup" id="add_marcup_country"  value="3" checked="checked">

                <label for="add_marcup_country"><span class="radio">Country</span></label>
            </div>

        </div>
        
        <?php if(($type!='flight') && ($type!='package')) { ?>
        
        <div class="col-sm-2">
            <div class="carbooking">
                <input type="radio" name="markup" id="add_marcup_state"  value="5" checked="checked">

                <label for="add_marcup_state"><span class="radio">State</span></label>
            </div>

        </div>
        
        <?php } ?>

        <div class="col-sm-2">

            <div class="carbooking">
<input type="radio" name="markup" id="add_marcup_city" value="4">

                <label for="add_marcup_city"><span class="radio">City</span></label>
            </div>

        </div>
         <div class="col-sm-2">

           <div class="carbooking">
<input type="radio" name="markup" id="add_marcup_booking" value="2">

                <label for="add_marcup_booking"><span class="radio">Booking Type</span></label>

            </div>

        </div>
         <div class="col-sm-2">
            <div class="carbooking">


           <input type="radio" name="markup"  id="add_marcup_user" value="1" >

                <label for="add_marcup_user"><span class="radio">User</span></label>
            </div>



        </div>

    </div>

</div>





                                  <!--                              add markup user start             -->
                            <div id="user_markup_div">

                                <div class="form-group clearfix margintopbottom20">
<!--                                        <label class="col-sm-2 markup-user-id"><strong>User ID</strong></label>
                                        <div class="col-sm-4 markup-user-id">

                                            <?php echo $this->FormElement($form->get('driver_id')); ?>
                                            <?php echo $this->formElementErrors($form->get('driver_id'), ['class' => 'error']); ?>
                                        </div>-->

                                        <label class="col-sm-2 markup-user-name"><strong>Name</strong></label>
                                        <div class="col-sm-4 markup-user-name">

                                             <?php echo $this->FormElement($form->get('driver_name')); ?>
                                            <?php echo $this->FormElement($form->get('driver_value')); ?>
                                            <?php echo $this->formElementErrors($form->get('driver_name'), ['class' => 'error']); ?>
                                        </div>

                                        <label class="col-sm-2 markup-user-country"><strong>Country</strong></label>
                                        <div class="col-sm-4 markup-user-country">

                                            <?php echo $this->FormElement($form->get('country_id')); ?>
                                            <?php echo $this->formElementErrors($form->get('country_id'), ['class' => 'error']); ?>
                                        </div>
                                          <label class="col-sm-2 markup-user-state"><strong> State</strong></label>
                                        <div class="col-sm-4 markup-user-state">

                                             <?php echo $this->FormElement($form->get('state_id')); ?>
                                            <?php echo $this->formElementErrors($form->get('state_id'), ['class' => 'error']); ?>
                                        </div>

                                        <label class="col-sm-2 markup-user-city"><strong> City</strong></label>
                                        <div class="col-sm-4 markup-user-city">

                                             <?php echo $this->FormElement($form->get('city_id')); ?>
                                            <?php echo $this->formElementErrors($form->get('city_id'), ['class' => 'error']); ?>
                                        </div>

                                         <label class="col-sm-2 markup-user-type"><strong>User Grade Type</strong></label>
                                        <div class="col-sm-4 markup-user-type">

                                            <!--<select id="addUser-type" name="addUser_type" multiple="multiple" class="demo-default select-state selectized form-control" placeholder="Select Type" style="display: none;" tabindex="-1">
                                                          <option value="A Grade ">A Grade </option>
                                                          <option value="B Grade ">B Grade </option>
                                                          <option value="C Grade ">C Grade </option>
                                                          </select>-->

                                             <?php echo $this->FormElement($form->get('user_grade_type')); ?>
                                        </div>

                                        <label class="col-sm-2 markup-user-booking-type"><strong>Booking Type</strong></label>
                                        <div class="col-sm-4 markup-user-booking-type">


                                             <?php  echo $this->FormElement($form->get('booking_type'));?>
                                        </div>

                                        <div class="col-sm-12 no-padding">

                                          <label class="col-sm-2 markup-user-markup-type"><strong>Markup Type</strong></label>

                                          <div class="col-sm-4 no-padding markup-user-markup-type lineheight40px">
                  	 <div class="col-sm-6 ">
                  	 <div class="carbooking">
      	        <input type="radio" name="addmarkupType" checked="checked" id="addmarkup_typeper" value="%">
     										<label for="addmarkup_typeper"><span class="radio">Percent (%)</span></label>
    									</div>

                          </div>

                     <div class="col-sm-6 ">
                                        <div class="carbooking">
     <input type="radio" name="addmarkupType" id="addmarkup_typefixed" value="Rs">
     										<label for="addmarkup_typefixed"><span class="radio">Fixed(Rs)</span></label>
    									</div>

                                        </div>
                  </div>
                                          
                                                                                  <div class="currency_div display-none">

                                          <label class="col-sm-2 markup-user-currency"><strong>Currency</strong></label>
                                        <div class="col-sm-4 markup-currency">


                                             <?php  echo $this->FormElement($form->get('currency'));?>
                                        </div>


                       </div>
                                        
                                        
                                        
                                        
                                        <div class="col-sm-12 no-padding">



                                        <label class="col-sm-2 markup-user-markup-amount"><strong>Markup Amount</strong></label>

                                        <div class="col-sm-4 no-padding markup-user-markup-amount markup-margin5px">

                  	<div class="col-sm-4">

                      	 <?php echo $this->FormElement($form->get('markup_amount')); ?>

                        </div>

                         <div class="col-sm-4 lineheight40px">
                  	 <div class="carbooking">
      	           <input type="radio" name="addmarkupAmountT" checked="checked" id="addamounttype" value="1">
     		<label for="addamounttype"><span class="radio">Total</span></label>
          </div>

                          </div>

                     <div class="col-sm-4 lineheight40px ">
                                        <div class="carbooking">
      			<input type="radio" name="addmarkupAmountT" id="addamounttypebace" value="2">
     	         <label for="addamounttypebace"><span class="radio">Base</span></label>
    									</div>

                                        </div>

                  </div>

                       </div>
                                        
                                        
                                        
                                        <div class="extra_hr_div display-none">

                                           <label class="col-sm-2 markup-user-extryMin"><strong>Extra HR</strong></label>
                  <div class="col-sm-4 markup-user-extryMin">

                  	                      <?php echo $this->FormElement($form->get('extra_min')); ?>
                                            <?php echo $this->formElementErrors($form->get('extra_min'), ['class' => 'error']); ?>

                        </div>


                          <label class="col-sm-2 markup-user-extryKm"><strong>Extra KM</strong></label>
                  <div class="col-sm-4 markup-user-extryKm">

                  	                      	 <?php echo $this->FormElement($form->get('extra_km')); ?>
                                            <?php echo $this->formElementErrors($form->get('extra_km'), ['class' => 'error']); ?>

                        </div>

                          </div>





                                    </div>
                      </div>



                            <div class="tool-bar">

                                    <div class="text-right btn-groups">
                                        <a class="back_btn_link btn btn-orange btn-default" id="back_markup" href="<?php echo $this->basePath('/markup');?>">
                                            <i class="fa fa-chevron-left"></i>
                                            Back
                                        </a>
                                        <a class="reset_btn btn btn-success btn-new-vehile" href="#">
                                            <i class="fa fa-retweet"></i>
                                            Reset
                                        </a>
                                         <?php echo $this->FormElement($form->get('save')); ?>

</div>
</div>


</div>


<?php echo $this->form()->closeTag(); ?>

</div>

</div>

</div>
</div>

</div>

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


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

</div>

</div>

</section>
