<!-- Main content -->
<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"> Search <?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="search_markup">

<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" class="form-control 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" class="form-control 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" class="form-control markup" 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" class="form-control markup" 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" class="form-control markup"  id="add_marcup_user" value="1" >

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



        </div>

    </div>

</div>

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



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

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


                                                                        <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')); ?>

                                                                        </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')); ?>

                                                                        </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')); ?>

                                                                        </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')); ?>

                                                                        </div>

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


                                                                            <?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>


                                                                            <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>

                                                                        <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')); ?>


                                                                        </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')); ?>


                                                                        </div>

                                                                        -->


                                                                    </div>
                                                                </div>
                                                                <div class="tool-bar">
                                                                    <div class="text-right btn-groups">


                                                                        <a href="#" class="btn btn-red defaultbtnsearch btn-warning markup-button">Search</a>
                                                                        <a class=" btn btn-warning reset_btn" href="#">Clear</a>
                                                                    </div>
                                                                </div>

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



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

                            <div class="tool-bar margin-bottom margintopnew20">
                                <div class="btn-groups" align="right">



                                    <a class="publish_all btn btn-primary " href="<?php echo $this->basePath('/markup/add-markup-user/'.$type); ?>" rel="">
                                        <i class="fa fa-plus"></i>
                                        Add New <?php echo $type;?> Markup
                                    </a>
                                    <a class="publish_all btn btn-success publish select-checkbox" id="publish-user" href="javascript: void(0);" onclick="changeStatus('publish', 'markup', 'markup-status')">
                                        <i class="fa fa-check-circle"></i>
                                        <?php echo $this->translate('Publish'); ?>
                                    </a>
                                    <a class="publish_all btn btn-unapublish unpublish select-checkbox" id="unpublish-user" href="javascript: void(0);" onclick="changeStatus('unpublish', 'markup', 'markup-status')">
                                        <i class="fa fa-times-circle"></i>
                                        <?php echo $this->translate('Unpublish'); ?>
                                    </a>
                                    <a class="delete_all btn btn-danger delete select-checkbox" id="delete-all-user" href="javascript: void(0);" onclick="changeStatus('muldelete', 'markup', 'markup-status')">
                                        <i class="fa fa-trash-o"></i>
                                        <?php echo $this->translate('Delete'); ?>
                                    </a>
                                </div>
                            </div>

                            <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">

                                        <div class="box-body table-responsive listing-data" id="markup-search-list">
                                            <?php echo $this->partial('markup-listing.phtml'); ?>
                                        </div>

                                    </div>

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

            </div>

        </div>

</section>