<?php

use app\base\Common;
use yii\helpers\Html;
use kartik\grid\GridView;
use rmrevin\yii\fontawesome\FA;

/* @var $this yii\web\View */
/* @var $searchModel app\models\VisitscheduleSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('app', 'Visitschedules');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="visitschedule-index">

    <h1><?= Html::encode($this->title) ?></h1>
    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

			// 'sch_id',
			'participant_id:ntext',
			'date_of_screening',
			[
				'attribute' => 'visit_code',
				// 'attribute' => 'visit.visit_name',
				'value' => 'visit.visit_name'
			],
			// 'no_of_days',
			'actual_date',
			'visit_date',
			'window_start',
			'window_end',
			'status',
			// 'create_time:datetime',
			// 'create_user',
			// 'update_time:datetime',
			// 'update_user',
			// 'record_date',

            // ['class' => 'app\behaviours\ActionColumns'],
        ],
    ]); ?>
</div>
