<?php

use yii\helpers\Html;
use kartik\grid\GridView;
use rmrevin\yii\fontawesome\FA;
/* @var $this yii\web\View */
/* @var $searchModel app\models\AttandanceSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
?>
<div class="allincentives-index">
	<?= GridView::widget([
		'dataProvider' => $dataProvider,
		'panel' => ['heading' => "<b>Overall Incentives</b>"],
		'beforeHeader'=>[
			[
				'columns'=>[
					['content'=>'', 'options'=>['class'=>'col-md-2']],
					['content'=>'<h4 style=color:red;>All clients including cohort enrollment</h4>', 'options'=>['colspan'=>3, 'class'=>'text-center col-md-4']],
					['content'=>'<h4 style=color:green;>All clients in cohort</h4>', 'options'=>['colspan'=>3, 'class'=>'text-center col-md-4']],
					['content'=>'<h4 style=color:blue;>All clients excluding cohort enrollment</h4>', 'options'=>['colspan'=>3, 'class'=>'text-center col-md-4']],
				],
			]
		],
		'columns' => [
			[
				'attribute' => 'type',
				'label' => 'Type',
			],
			[
				'attribute' => 'allearned',
				'label' => 'Earned',
			],
			[
				'attribute' => 'allpaid',
				'label' => 'Paid',
			],
			[
				'attribute' => 'allbalance',
				'label' => 'Balance',
				// 'mergeHeader'=>true,
				// 'width'=>'150px',
				// 'hAlign'=>'right',
				// 'format'=>['decimal', 2],
				// 'pageSummary'=>true
			],
			[
				'attribute' => 'incohortearned',
				'label' => 'Earned',
			],
			[
				'attribute' => 'incohortpaid',
				'label' => 'Paid',
			],
			[
				'attribute' => 'incohortbalance',
				'label'=> 'Balance',
				// 'mergeHeader'=>true,
				// 'width'=>'150px',
				// 'hAlign'=>'right',
				// 'format'=>['decimal', 2],
				// 'pageSummary'=>true
			],
			[
				'attribute' => 'excohortearned',
				'label' => 'Earned',
			],
			[
				'attribute' => 'excohortpaid',
				'label' => 'Paid',
			],
			[
				'attribute' => 'excohortbalance',
				'label' => 'Balance',
				// 'mergeHeader'=>true,
				// 'width'=>'150px',
				// 'hAlign'=>'right',
				// 'format'=>['decimal', 2],
				// 'pageSummary'=>true
			],
		],
	]); ?>
</div>
