<?php
use Zend\Session\Container;
$sessionContainer = new Container('userlogin');
$userData = $sessionContainer->userData;
$userTypeId = $userData['user_type_id'];
?>
<!-- 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="fare_search">
                                <div class="panel-headingnew"> Fare search </div>

                                <div id="faq-1-1" class="panel-collapse collapse in" aria-expanded="true">
                                    <div class="panel-body">
                                        <div class="row">
                                            <div class="col-sm-12">
                                                <?php echo $this->partial('add-search.phtml'); ?>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <?php if($userTypeId=='4'){ ?>
                            <div class="tool-bar margin-bottom margintopnew20">
                                <div class="btn-groups" align="right">
    <a class="btn btn-blue btn-microsoft" href="<?php echo $this->url('cabfare', array('action' => 'add-fare')); ?>">
        <i class="fa fa-plus-circle"></i>
        Add Fare
    </a>

    <a class="publish_all btn btn-success" href="javascript: void(0);" onclick="changeStatus('publish','cabfare','fare-status')">
        <i class="fa fa-check-circle"></i>
        Publish
    </a>
    <a class="publish_all btn btn-unapublish" href="javascript: void(0);" onclick="changeStatus('unpublish','cabfare','fare-status')">
        <i class="fa fa-times-circle"></i>
        Unpublish
    </a>
    <a class="delete_all btn btn-danger btn-new-vender" href="javascript: void(0);" onclick="changeStatus('muldelete','cabfare','fare-status')">
        <i class="fa fa-trash-o"></i>
        Delete
    </a>
</div>
                            </div>
                            <?php }?>
                            <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('vendor-fare-listing'); ?>

                                        </div>
                                        <!-- /.box-body -->
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- /.widget-box -->
        </div>
        <!-- /.col -->
    </div>
    <!-- /.row -->
    <!-- Main row -->
</section>
<!-- /.content -->