<!-- 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">
                                <div class="panel-headingnew"><?php echo $this->translate('Company Price'); ?> </div>
                                <div class="left_panel col-sm-12 padding_margin0 pull-left bg-white">
                                    <?php echo $this->partial('menu'); ?>
                                    <div class="tab-content tab_editprofile col-sm-10 padding-left0 margin-bttom10px margin-top10px" >
                                        <div id="common-booking" class="tab-pane fade in tab_editprofile tab_editprofile1 active">
                                            <div class="change_password tab_editprofile">
                                                <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-12">
                                                                    <div class="box">
                                                                        <div class="box-body table-responsive">
                                                                            <table id="myTable" class="table table-bordered table-striped">
                                                                                <thead>
                                                                                    <tr>
                                                                                        <th>S.No</th>
                                                                                        <th>Calculated By</th>
                                                                                        <th>Car Type</th>
                                                                                        <th>State</th>
                                                                                        <th>City</th>
                                                                                        <th>Rate/km</th>
                                                                                        <th>Rate/hour</th>
                                                                                        <th>Minimum Chrg</th>
                                                                                    </tr>
                                                                                </thead>
                                                                                <tbody>
                                                                                    <?php
                                                                                    if ($outstationListing > 0) {
                                                                                        $i = 1;
                                                                                        foreach ($outstationListing as $listing) {
                                                                                            if ($listing['master_package_mode_id'] == 1) {
                                                                                                $ratePerKm = $listing['distance_per_km_charge'];
                                                                                                $ratePerHr = 0;
                                                                                                $minimumCharge = $listing['distance_minimum_charge'];
                                                                                            } elseif ($listing['master_package_mode_id'] == 2) {
                                                                                                $ratePerKm = 0;
                                                                                                $ratePerHr = $listing['hourly_per_hr_charge'];
                                                                                                $minimumCharge = $listing['hourly_minimum_charge'];
                                                                                            } elseif ($listing['master_package_mode_id'] == 3) {
                                                                                                $ratePerKm = $listing['dist_hour_per_km_charge'];
                                                                                                $ratePerHr = 0;
                                                                                                $minimumCharge = $listing['dist_hour_minimum_charge'];
                                                                                            } elseif ($listing['master_package_mode_id'] == 4) {
                                                                                                $ratePerKm = $listing['dist_waiting_per_km_charge'];
                                                                                                $ratePerHr = 0;
                                                                                                $minimumCharge = $listing['dist_waiting_minimum_charge'];
                                                                                            }
                                                                                            ?>
                                                                                            <tr>
                                                                                                <td><?php echo $i; ?></td>
                                                                                                <td><?php echo $listing['package_mode']; ?></td>
                                                                                                <td><?php echo $listing['vehicle_type']; ?> </td>
                                                                                                <td><?php echo $listing['state_name']; ?></td>
                                                                                                <td><?php echo $listing['city_name']; ?></td>
                                                                                                <td><i class="fa fa-inr"></i><?php echo $ratePerKm; ?></td>
                                                                                                <td><i class="fa fa-inr"></i><?php echo $ratePerHr; ?> </td>
                                                                                                <td><i class="fa fa-inr"></i><?php echo $minimumCharge; ?></td>
                                                                                            </tr>
                                                                                            <?php
                                                                                            $i++;
                                                                                        }
                                                                                    } else {
                                                                                        ?>
                                                                                        <tr></tr>
                                                                                    <?php } ?>
                                                                                </tbody>
                                                                            </table>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <br>
            <!-- /.widget-box -->
        </div>
        <!-- /.col -->
    </div>
    <!-- /.row -->
    <!-- Main row -->

    <!-- /.content -->
</section>