= $this->title ?>
$dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => \yii\grid\SerialColumn::className()],
[
'attribute' => 'first_name',
'filterInputOptions' => ['class' => 'form-control col-md-8'],
'value' => function (ItemBottleRefundHistory $model) {
return $model->first_name;
}
],
[
'attribute' => 'last_name',
'filterInputOptions' => ['class' => 'form-control col-md-8'],
'value' => function (ItemBottleRefundHistory $model) {
return $model->last_name;
}
],
[
'attribute' => 'mobile_number',
'filterInputOptions' => ['class' => 'form-control col-md-8'],
'value' => function (ItemBottleRefundHistory $model) {
return $model->mobile_number;
}
],
[
'attribute' => 'refund_bottle_qty',
'filterInputOptions' => ['class' => 'form-control col-md-8'],
'value' => function (ItemBottleRefundHistory $model) {
return $model->refund_bottle_qty;
}
],
[
'attribute' => 'refund_status',
'filterInputOptions' => ['class' => 'select2 form-control', 'prompt'=> yii::t('backend','All')],
'filter' => [
ItemBottleRefundHistory::PENDING => yii::t('backend','Pending'),
ItemBottleRefundHistory::REFUND_SUCCESS => yii::t('backend','Completed'),
ItemBottleRefundHistory::REJECTED => yii::t('backend','Rejected')
],
'format' => 'raw',
'value' => function (ItemBottleRefundHistory $model) {
return Html::activeDropDownList($model, 'refund_status', $model->getStatus($model->refund_status), ['class' => 'select2 form-control col-md-10 payment-status'] );
}
],
],
]);
?>