116
}
public function actionReportT13()
{
$workers = \app\models\Worker::find()
->andWhere(['active' => true])
->orderBy(['last_name' => SORT_ASC, 'first_name' =>
SORT_ASC, 'middle_name' => SORT_ASC])
->all();
return Yii::$app->response->sendContentAsFile($this-
>renderPartial('report-t13', ['workers' => $workers, 'settings' => Yii::$app->user-
>identity]), Yii::t('app', 'Report T13') . '.xls');
}
public function actionReportTimeControl()
{
$workers = \app\models\Worker::find()
->andWhere(['active' => true])
->orderBy(['last_name' => SORT_ASC, 'first_name' =>
SORT_ASC, 'middle_name' => SORT_ASC])
->all();
return Yii::$app->response->sendContentAsFile($this-
>renderPartial('report-time-control', ['workers' => $workers, 'settings' => Yii::$app-
>user->identity]), Yii::t('app', 'Report Time Control') . '.xls');
}