<?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\MobilenumbersSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('app', 'Mobilenumbers');
$this->params['breadcrumbs'][] = $this->title;
$this->params['menu'] = [
	['label' => FA::icon('plus fa-fw'), 'linkOptions' => ['class'=>'btn btn-default', 'title'=>'Create'], 'url' => ['create']],
];
?>
<div class="mobilenumbers-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'],
			// 'mobile_id',
			//'mobile_part_id',
			//'mobile_q1',
            ['class' => 'yii\grid\SerialColumn',
			 'contentOptions' => ['style' => 'width:30px;  min-width:30px;']
			 ],
			 
			 
			 [
		    'attribute' => 'mobile_part_id',			
			'contentOptions' => ['style' => 'width:160px;  min-width:100px;'],
		],
			
			 [
		    'attribute' => 'mobile_q1',			
			'contentOptions' => ['style' => 'width:200px;  min-width:100px;'],
		], 
			
			 
			 [
					'attribute' => 'record_date',
					'format' => 'date',
					'contentOptions' => ['style' =>'width:270px;  min-width:100px;'],
					// 'contentOptions' => ['class' => 'col-md-1'],
		            'filterType'=>GridView::FILTER_DATE,
		            'filterWidgetOptions' => ['pluginOptions' => ['autoclose' => true, 'startDate' => '01-01-1900', 'endDate' => '0', 'format' => strtolower(Yii::$app->formatter->dateFormat), 'orientation' => 'bottom']],
				],
            ['class' => 'app\behaviours\ActionColumns'],
        ],
    ]); ?>
	
</div>