
        <div class="row">
            <div class="col-sm-12">
                <div class="panel panel-bd lobidrag">
                    <div class="panel-heading">
                        <div class="panel-title">
                          <h4><?php echo display('attendance_report')?></h4>
                        </div>
                    </div>
                    <div class="panel-body">
                        <div class="row">
    <!--  table area -->
 
  <span class="padding-lefttitle">

<?php 
$add0 =array(
    'type'        => 'button',
    'class'       => "btn btn-success btn-md",
    'data-target' => "#add0",
    'data-toggle' => "modal",
    'value'       => display('datewise_report'),
    );
$add =array(
    'type'        => 'button',
    'class'       => "btn btn-success btn-md",
    'data-target' => "#add",
    'data-toggle' => "modal",
    'value'       => display('employee_wise_report'),
    );

 echo form_input($add0); 
 echo form_input($add); 
?>
</span>
        
  <table  class="datatable table table-striped table-bordered table-hover">
                <caption><?php echo display('report_view') ?></caption>
                <thead>
                    <tr>
                        <th><?php echo display('Sl') ?></th>
                        <th><?php echo display('name') ?></th>
                        <th><?php echo display('date') ?></th>
                        <th><?php echo display('check_in') ?></th>
                        <th><?php echo display('checkout') ?></th>
                        <th><?php echo display('stay') ?></th>
                         
                    </tr>
                </thead>
                <tbody>
                    <?php if ($attendance_list == FALSE): ?>

                        <tr><td colspan="7" class="text-center">There are currently No Information</td></tr>
                    <?php else: ?>
                         <?php $sl = 1; ?> 
                        <?php foreach ($attendance_list as $row): ?>
                            <tr class="<?php echo ($sl & 1)?"odd gradeX":"even gradeC" ?>">
                            <td><?php echo $sl; ?></td>
                                <td><?php echo html_escape($row['first_name']).' '.html_escape($row['last_name']); ?></td>
                                <td><?php echo html_escape($row['date']); ?></td>
                                <td><?php echo html_escape($row['sign_in']); ?></td>
                                <td><?php echo html_escape($row['sign_out']); ?></td>
                                <td><?php echo html_escape($row['staytime']); ?></td>
                               
                            </tr>
                              <?php $sl++; ?>
                        <?php endforeach; ?>
                    <?php endif; ?>
                </tbody>
            </table>


                <!-- /.table-responsive -->


<div id="add" class="modal fade" role="dialog">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <strong><?php echo display('employee_wise_report')?></strong>
            </div>
            <div class="modal-body">
           
<div class="row">
        <div class="col-sm-12 col-md-12">
            <div class="panel">
                <div class="panel-heading">
                    <div class="panel-title">
                        <h4><?php echo display('attendance_report') ?></h4>
                    </div>
                </div>
                <div class="panel-body">

                    <?php echo  form_open('userwise_attendance_report','name="myForm"') ?>
                        
                         <div class="form-group row">
                            <label for="employee_id" class="col-sm-3 col-form-label"><?php echo display('employee_name') ?> <span class="text-danger">*</span></label>
                            <div class="col-sm-9">
                                  <?php echo form_dropdown('employee_id',$dropdownatn,(!empty($employee_id)?$employee_id:null),'class="form-control" id="employee_id" required') ?>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="date" class="col-sm-3 col-form-label"><?php echo display('start_date') ?> <span class="text-danger">*</span></label>
                            <div class="col-sm-9">
                                <input name="s_date" class="datepicker form-control" type="text" placeholder="<?php
        
                                 echo display('start_date') ?>"  id="a_date" required>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="end_date" class="col-sm-3 col-form-label"><?php echo display('end_date') ?> <span class="text-danger">*</span></label>
                            <div class="col-sm-9">
                                <input name="e_date" class="datepicker form-control" type="text" placeholder="<?php  
                                 echo display('end_date') ?>" id="b_date" required>
                            </div>
                        </div>
                       

                        <div class="form-group text-right">
                            <button type="submit" class="btn btn-success w-md m-b-5"><?php echo display('request') ?></button>
                        </div>
                    <?php echo form_close() ?>

                </div>  
  
            </div>
        </div>
    </div>
             
    
   
    </div>
     
            </div>
            <div class="modal-footer">

            </div>

        </div>

    </div>



<div id="add0" class="modal fade" role="dialog">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <strong><?php echo display('attendance_report') ?></strong>
            </div>
            <div class="modal-body">
           <div class="row">
        <div class="col-sm-12 col-md-12">
            <div class="panel">
                <div class="panel-heading">
                    <div class="panel-title">
                        <h4><?php echo display('attendance_report') ?></h4>
                    </div>
                </div>
                <div class="panel-body">

                    <?php echo  form_open('datewise_attendance_report') ?>
                        
                        <div class="form-group row">
                            <label for="date" class="col-sm-3 col-form-label"><?php echo display('start_date') ?> <span class="text-danger">*</span></label>
                            <div class="col-sm-9">
                                <input name="start_date" class="datepicker form-control" type="text" placeholder="<?php
        
                                 echo display('start_date') ?>"  id="start_date" required>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="end_date" class="col-sm-3 col-form-label"><?php echo display('end_date') ?> <span class="text-danger">*</span></label>
                            <div class="col-sm-9">
                                <input name="end_date" class="datepicker form-control" type="text" placeholder="<?php  
                                 echo display('end_date') ?>" id="end_date" required>
                            </div>
                        </div>
                       

                        <div class="form-group text-right">
                            <button type="submit" class="btn btn-success w-md m-b-5"><?php echo display('request') ?></button>
                        </div>
                    <?php echo form_close() ?>

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

    </div>

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

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