<div class="col-sm-12  " align="right">

    <div class="tool-bar margin">
        <div class="row">
            <a href="<?php echo $this->url('staff', array('action' => 'add-staff')); ?>" class="back_btn_link btn btn-primary pull-right"><i class="fa fa-plus"></i> Add</a>

        </div>
    </div>
</div>
<section class="content">
    <div class="row">
        <div class="col-sm-12">
            
           <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('staff-listing.phtml'); ?>
                            </div>
                            <!-- /.box-body -->
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<!--popup for status-->

<div id="statuspopup" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Staff Status</h4>
      </div>
      <div class="modal-body">
         <div class="col-sm-12 no-padding">
                                                                    <div class="form-group clearfix margintopbottom20">
                                                                      <?php

                                                                     if($userstatus['status']==1){

                                                                      foreach ($userstatus['data'] as $id=>$val)
                                                                      {?>
                                                                        
                                                                             <?php if($id==1 || $id==4){?>
                                                                        <div class="col-sm-4">

                                                                            <div class="carbooking">
                                            <input type="radio" name="driver_sataus" id="<?php echo $val; ?>" value="<?php echo $id; ?>">
                                            <label for="<?php echo $val; ?>"><span class="radio"><?php echo $this->translate($val); ?></span></label>
                                        </div>

                                                                        </div>

                                                                             <?php }} }?>


                                                                    </div>


                                                                    </div>
      </div>
      <div class="modal-footer">
           <input type="hidden" id="user_id" value="" name="userid">

         <input type="button" class="btn btn-danger" value="Save" name="save" id="savestatus"  />
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>

  </div>
</div>