<?php

use yii\helpers\Html;
use kartik\grid\GridView;
use rmrevin\yii\fontawesome\FA;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $searchModel app\models\AttandanceSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

?>
<div class="attandance-index">

 <?php Pjax::begin(); ?>       <?= GridView::widget([
        'dataProvider' => $dataProvider,
		'formatter' => ['class' => 'yii\i18n\Formatter','nullDisplay' => '-', 'dateFormat' => 'dd-MM-Y'],
        'layout' => '<div class="box"><div class="box-header with-border"><b>Client Status Summary</b></div><div class="box-body">{items}</div><div class="box-footer clearfix"></div></div>',
			
		'panel' => ['type' => GridView::TYPE_PRIMARY,'heading' => '<b>Client Status Summary</b>','beforeOptions'=>['class'=>'grid_panel_remove'],'afterOptions'=>['class'=>'grid_panel_remove']],
		'toolbar' => false,		
        'summary' => '',		
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],
		
            [
    			'attribute' => 'ClientStatus',
                'label'=>'Client Status',                			
                 				
            ],			
			[   'attribute' => 'NegCnt',
			    'header' => 'Negative',		                
				'contentOptions' =>  ['class' => 'bg-red'],	
				//'headerOptions' => ['class' => 'badge bg-red'],       				
						
			],
			[   'attribute' => 'PosCnt',				
				'header' => 'Positive',
				'contentOptions' =>  ['class' => 'bg-green'],								 	
				
			],
			[   'attribute' => 'PosstarCnt',				
				'header' => 'Positive**',
				'contentOptions' =>  ['class' => 'bg-aqua'],	
							
			],
			[   'attribute' => 'IndCnt',				
				'header' => 'Indeterminate',
				'contentOptions' =>  ['class' => 'bg-yellow'],								 	
				
			],
			[   'attribute' => 'UnkCnt',				
				'header' => 'Unknown',
				'contentOptions' =>  ['class' => 'bg-default'],				 	
							
			],			
						
			[   'attribute' => 'TotCnt',
				'header'=>'Total',
				'contentOptions' =>  ['class' => 'bg-blue'],						  
				//'contentOptions' => ['style' => 'color:red; font-weight:bold;'],  
            				
									
			],
			
		],
    ]); ?>
<?php Pjax::end(); ?></div>
