<?php

use yii\helpers\Url;
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">

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
		'formatter' => ['class' => 'yii\i18n\Formatter','nullDisplay' => '-', 'dateFormat' => 'dd-MM-Y'],
		'options'=>['style' => 'white-space:nowrap;'],  
        'layout' => '<div class="box"><div class="box-header with-border"><b>Today\'s Attendance Client Status</b>{summary}</div><div class="box-body">{items}</div><div class="box-footer clearfix">{pager}</div></div>',
		'panel' => ['type' => GridView::TYPE_PRIMARY,'heading' => '<b>Not Yet Screened Client HIV Linkage Status</b>','afterOptions'=>['class'=>'grid_panel_remove']],
    	// 'filterModel' => $searchModel,
        // 'showOnEmpty' => true,
        // 'emptyCell' => '-',
        'columns' => [
            ['class' => 'yii\grid\SerialColumn',
			//'contentOptions' => ['style' => 'width:50px; min-width:50px; max-width:50px;'],
			],
            [
                'attribute' => 'corfrm_pid',
                'header' => 'Client ID',
				//'contentOptions' => ['style' => 'width:130px; min-width:50px; max-width:50px;'],
                
            ],			            
             [
                'header' => 'HIV Linkage Status',
				//'contentOptions' => ['style' => 'width:130px; min-width:150px; max-width:50px;'],
                'format' => 'raw',				
                'value' => function($data) {
                    return $data->getHivlinkage();
                }
            ],    

             [
                'header' => 'Last Visit Date',
				//'contentOptions' => ['style' => 'width:130px; min-width:150px; max-width:50px;'],
                'format' => 'raw',				
                'value' => function($data) {
                    return $data->getAttnlastDate();
                }
            ],    	
			
            [
                'header' => 'Contact Number',
				//'contentOptions' => ['style' => 'width:130px; min-width:150px; max-width:50px;'],
                'format' => 'raw',				
                'value' => function($data) {
                    return $data->getContact();
                }
            ],    
          			
            
        ],
    ]); ?>
</div>