                                                         
- if(!isset($pagination) || $pagination == false)                                               
  %p=t('Last {0} sessions', array('{0}'=>count($workPeriods)))                                                                     

.report-table-container  
  %table.table.table-striped.table-condensed
    %thead
      %tr
        %th
        %th=t('Session')
        -if($all)
          %th=t('User')
        %th=t('Start')
        %th=t('End')
        %th=t('Period')
        -if(paramdeep('payslip','showButton'))
          %th=t('Slip')
        - if (Yii::app()->user->checkAccess('create_events_report') && paramdeep('report','byWorkPeriod') )
          %th=t('Report')
    %tbody
      - foreach($workPeriods as $workPeriod)
        - $this->renderPartial('/dashboard/workPeriod/_eventsReportRow',get_defined_vars())


  .row
    - if((!isset($pagination) || $pagination == false) && user()->checkAccess('work_period_view_all'))
      %a.btn.btn-small.pull-right.btn-workperiod-details(href="#{Yii::app()->createAbsoluteUrl('workPeriod/all')}")        
        =Yii::t('app', 'Details for all users')   

    - if(!isset($pagination) || $pagination == false)
      %a.btn.btn-small.pull-right.btn-workperiod-details(href="#{Yii::app()->createAbsoluteUrl('workPeriod/index')}")        
        =Yii::t('app', 'more..')
     
#modal-payslip-confirm.modal.hide.fade
#modal-report-detail.modal.hide.fade
#modal-report-confirm.modal.hide.fade
