= $this->title ?>
= Html::a(Yii::t('backend', 'Export'), ['pdf'],
['class' => 'btn btn-success d-none d-lg-block m-l-15 pull-right']) ?>
= $this->render('_search', ['model' => $searchModel]) ?>
$dataProvider,
'columns' => [
['class' => \yii\grid\SerialColumn::className()],
[
'attribute' => 'vendor_name',
'filterInputOptions' => ['class' => 'form-control col-md-10'],
'value' => function (Order $model) {
return $model->vendor_name;
}
],
[
'attribute' => 'total_order_amount',
'value' => function (Order $model) {
if ($model->total_order_amount != '') {
return round($model->total_order_amount, 2);
} else {
return '-';
}
}
],
[
'attribute' => 'total_admin_profit',
'value' => function (Order $model) {
if ($model->total_admin_profit != '') {
return round($model->total_admin_profit, 2);
} else {
return '-';
}
}
],
[
'attribute' => 'total_vendor_profit',
'value' => function (Order $model) {
if ($model->total_vendor_profit != '') {
return round($model->total_vendor_profit, 2);
} else {
return '-';
}
}
],
[
'attribute' => 'no_of_orders',
'value' => function (Order $model) {
return $model->no_of_orders;
}
],
],
]); ?>