diff --git a/config/web.php b/config/web.php index 62ee8b8d..14e0e0e0 100644 --- a/config/web.php +++ b/config/web.php @@ -9,7 +9,7 @@ $config = [ 'id' => 'basic', 'homeUrl' => ['/dashboard'], 'name' => 'BeetInnovators ANPR', - 'defaultRoute' => 'dashboard', + 'defaultRoute' => 'logs', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'timeZone' => 'Asia/Ho_Chi_Minh', diff --git a/controllers/LogsUnknowController.php b/controllers/LogsUnknowController.php new file mode 100644 index 00000000..6106d633 --- /dev/null +++ b/controllers/LogsUnknowController.php @@ -0,0 +1,141 @@ +user->isGuest) { + return $this->redirect(['/site/login']); + } + } + + /** + * {@inheritdoc} + */ + public function behaviors() { + return [ + 'verbs' => [ + 'class' => VerbFilter::className(), + 'actions' => [ + 'delete' => ['POST'], + ], + ], + ]; + } + + /** + * Lists all LogsUnknow models. + * @return mixed + */ + public function actionIndex($from = "", $to = "") { + if ($from === "") { + $from = "00:00 " . date("d/m/Y"); + } + if ($to === "") { + $to = "23:59 " . date("d/m/Y"); + } + $this->view->title = "Thống kê xe chưa rõ nguồn gốc"; + $searchModel = new LogsUnknowSearch(); + $dataProvider = $searchModel->search(Yii::$app->request->queryParams); + + $f = date_format(date_create_from_format('H:i d/m/Y', $from), 'U'); + $t = date_format(date_create_from_format('H:i d/m/Y', $to), 'U'); + $dataProvider->query->andWhere(["OR", ["BETWEEN", 'time_in', $f, $t], ["BETWEEN", 'time_out', $f, $t]]); + + return $this->render('index', [ + 'searchModel' => $searchModel, + 'dataProvider' => $dataProvider, + 'from' => $from, + 'to' => $to + ]); + } + + /** + * Displays a single LogsUnknow model. + * @param integer $id + * @return mixed + * @throws NotFoundHttpException if the model cannot be found + */ + public function actionView($id) { + return $this->render('view', [ + 'model' => $this->findModel($id), + ]); + } + + /** + * Creates a new LogsUnknow model. + * If creation is successful, the browser will be redirected to the 'view' page. + * @return mixed + */ + public function actionCreate() { + $model = new LogsUnknow(); + + if ($model->load(Yii::$app->request->post()) && $model->save()) { + return $this->redirect(['view', 'id' => $model->id]); + } + + return $this->render('create', [ + 'model' => $model, + ]); + } + + /** + * Updates an existing LogsUnknow model. + * If update is successful, the browser will be redirected to the 'view' page. + * @param integer $id + * @return mixed + * @throws NotFoundHttpException if the model cannot be found + */ + public function actionUpdate($id) { + $model = $this->findModel($id); + + if ($model->load(Yii::$app->request->post()) && $model->save()) { + return $this->redirect(['view', 'id' => $model->id]); + } + + return $this->render('update', [ + 'model' => $model, + ]); + } + + /** + * Deletes an existing LogsUnknow model. + * If deletion is successful, the browser will be redirected to the 'index' page. + * @param integer $id + * @return mixed + * @throws NotFoundHttpException if the model cannot be found + */ + public function actionDelete($id) { + $this->findModel($id)->delete(); + + return $this->redirect(['index']); + } + + /** + * Finds the LogsUnknow model based on its primary key value. + * If the model is not found, a 404 HTTP exception will be thrown. + * @param integer $id + * @return LogsUnknow the loaded model + * @throws NotFoundHttpException if the model cannot be found + */ + protected function findModel($id) { + if (($model = LogsUnknow::findOne($id)) !== null) { + return $model; + } + + throw new NotFoundHttpException('The requested page does not exist.'); + } + +} diff --git a/helpers/LogsGrid.php b/helpers/LogsGrid.php index 2e13b668..c1ddb9d3 100644 --- a/helpers/LogsGrid.php +++ b/helpers/LogsGrid.php @@ -25,19 +25,16 @@ class LogsGrid { public static function plateIn() { return function($model) { - $style = "width:50px"; - if ($model->mod_in == 1) { - $style = "width:100%"; + if ($model->time_in) { + $style = "width:100px"; + $image = $model->plate_image_in; + return Html::img(Yii::$app->request->hostInfo . "/AIParking_Intops_Server/web/data/uploads/" . $image, [ + 'class' => "img-thumbnail", + "style" => $style + ]); + } else { + return ""; } - $image = $model->plate_image_in; - if (!$image) { - $image = $model->frame_image_in; - $style = "width:100%"; - } - return Html::img(Yii::$app->request->hostInfo . "/data/uploads/" . $image, [ - 'class' => "img-thumbnail", - "style" => $style - ]); }; } @@ -54,16 +51,9 @@ class LogsGrid { public static function plateOut() { return function($model) { if ($model->time_out) { - $style = "width:50px"; - if ($model->mod_out == 1) { - $style = "width:100%"; - } + $style = "width:100px"; $image = $model->plate_image_out; - if (!$image) { - $image = $model->frame_image_out; - $style = "width:100%"; - } - return Html::img(Yii::$app->request->hostInfo . "/data/uploads/" . $image, [ + return Html::img(Yii::$app->request->hostInfo . "/AIParking_Intops_Server/web/data/uploads/" . $image, [ 'class' => "img-thumbnail", "style" => $style ]); @@ -75,8 +65,12 @@ class LogsGrid { public static function timeIn() { return function($model) { - $common = new common(); - return $common->formatTime($model->time_in, "H:i:s d/m/Y"); + if ($model->time_in) { + $common = new common(); + return $common->formatTime($model->time_in, "H:i:s d/m/Y"); + } else { + return ""; + } }; } diff --git a/intops.sql b/intops.sql index b700c7e9..fbe33dba 100644 --- a/intops.sql +++ b/intops.sql @@ -213,7 +213,7 @@ INSERT INTO `vehicle` (`id`, `plate`, `type`, `company`, `vehicle_type`, `driver (19, '99LD00217', 'XE TẢI', 'CÔNG TY TNHH KỸ THUẬT P&Q VINA', 'HUYNDAI ( xe tải)', 'Nguyễn Ngọc Sơn', '0944419862', '121 924 038', 1580547165, 1580547165), (20, '99LD00539', 'XE TẢI', 'CÔNG TY TNHH KỸ THUẬT P&Q VINA', 'HUYNDAI ( xe tải)', 'Nguyễn Hữu Tuyến', '0976275301', '121 787 006', 1580547165, 1580547165), (21, '99LD00506', 'XE TẢI', 'CÔNG TY TNHH KỸ THUẬT P&Q VINA', 'HUYNDAI ( xe tải)', 'Lục Văn Quý', '0975045703', '080837973', 1580547165, 1580547165), -(22, '20LD00141\n', 'XE TẢI', 'CÔNG TY TNHH DAERIM TECH VINA', 'KIA 1.5T Màu trắng', 'TRẦN VĂN CA ', '0984422061', '0915 88345', 1580547165, 1580547165), +(22, '20LD00141', 'XE TẢI', 'CÔNG TY TNHH DAERIM TECH VINA', 'KIA 1.5T Màu trắng', 'TRẦN VĂN CA ', '0984422061', '0915 88345', 1580547165, 1580547165), (23, '20LD00350', 'XE TẢI', 'CÔNG TY TNHH DAERIM TECH VINA', 'THACO OLLIN 3.5 Màu xanh', 'LÊ MINH TUẤN', '0964608444', '091614085', 1580547165, 1580547165), (24, '20LD00223', 'XE TẢI', 'CÔNG TY TNHH DAERIM TECH VINA', 'KIA 1.5T Màu xanh', 'HOÀNG TRUNG SƠN', '0912685826', '091619317', 1580547165, 1580547165), (25, '29C97868', 'XE TẢI', 'CÔNG TY TNHH NHỰA AN PHÚ VIỆT', 'Yaris', 'NGUYỄN VĂN HÙNG', '0969696388', '', 1580547165, 1580547165), @@ -275,7 +275,7 @@ INSERT INTO `vehicle` (`id`, `plate`, `type`, `company`, `vehicle_type`, `driver (81, '30E03988', 'XE KHÁCH', 'CÔNG TY CỔ PHẦN VIETTECH VIỆT NAM', 'Huyndai CRETA', 'Trần Quốc Anh', '0947776363', '183573616', 1580547165, 1580547165), (82, '29C54800', 'XE TẢI', 'CÔNG TY CỔ PHẦN VIETTECH VIỆT NAM', 'Kia', 'Vũ Văn Dương', '0966180292', '030087009585', 1580547165, 1580547165), (83, '99C12679', 'XE TẢI', 'CÔNG TY TNHH GEO NATION VIỆT NAM', 'Kia Mau Trang', 'Ngô Văn Tú', '0965250328', '121673126', 1580547165, 1580547165), -(84, '99LD017/36', 'XE TẢI', 'CÔNG TY TNHH GEO NATION VIỆT NAM', 'Kia Mau Trang', 'Nguyễn Văn Hưng', '0968338313', '122017510', 1580547165, 1580547165), +(84, '99LD01736', 'XE TẢI', 'CÔNG TY TNHH GEO NATION VIỆT NAM', 'Kia Mau Trang', 'Nguyễn Văn Hưng', '0968338313', '122017510', 1580547165, 1580547165), (85, '98LD00494', 'XE KHÁCH', 'CÔNG TY TNHH WORLD TELECOM VIỆT NAM', 'Inova màu bạc', 'Lưu Văn Trung', '0367180180', '121437632', 1580547165, 1580547165), (86, '30E64863', 'XE KHÁCH', 'CÔNG TY TNHH WORLD TELECOM VIỆT NAM', 'Inova màu bạc', 'Trần Tấn Đạt', '0982755888', '125647499', 1580547165, 1580547165), (87, '98C00878', 'XE TẢI', 'CÔNG TY TNHH WORLD TELECOM VIỆT NAM', 'Xe tải 1.4 tấn', 'Đỗ Văn Phú', '0392235973', '121813229', 1580547165, 1580547165), @@ -381,7 +381,7 @@ INSERT INTO `vehicle` (`id`, `plate`, `type`, `company`, `vehicle_type`, `driver (187, '98LD00334', 'XE TẢI', 'CÔNG TY TNHH EMW VIỆT NAM', 'SUZUKI 2,5 Tấn', 'Lê Văn Nên', '0982051023', '121814801', 1580547165, 1580547165), (188, '98LD00256', 'XE TẢI', 'CÔNG TY TNHH EMW VIỆT NAM', 'SUZUKI 1,9 Tấn', NULL, '', '', 1580547165, 1580547165), (189, '29H16956', 'XE TẢI', 'CÔNG TY TNHH GALTRONICS VIỆT NAM', 'ISUZU màu trắng ', 'NGUYỄN XUÂN TRUNG', '0989488513', '186998391', 1580547165, 1580547165), -(190, '000E+0', 'XE KHÁCH', 'CÔNG TY TNHH HONG JUN VINA', 'Inova màu bạc', 'HONG JUN YOUNG', '0983361600', 'M10875502', 1580547165, 1580547165), +(190, '30E91461', 'XE KHÁCH', 'CÔNG TY TNHH HONG JUN VINA', 'Inova màu bạc', 'HONG JUN YOUNG', '0983361600', 'M10875502', 1580547165, 1580547165), (191, '34C10924', 'XE TẢI', 'CÔNG TY TNHH HONG JUN VINA', 'Kia trắng 2,3 tấn', 'NGUYỄN ĐÌNH LONG', '0965913385', '121482136', 1580547165, 1580547165), (192, '38C10115', 'XE TẢI', 'CÔNG TY TNHH TECH&INNOVATION', 'xe tải', 'Nguyễn Thế Kha', '0834608889', '145682536', 1580547165, 1580547165), (193, '99LD01314', 'XE KHÁCH', 'CÔNG TY TNHH TECH&INNOVATION', 'Xe Sedona màu đen', 'Nguyễn Bá Tùng', '0965589502', '112514953', 1580547165, 1580547165), @@ -741,7 +741,7 @@ INSERT INTO `vehicle` (`id`, `plate`, `type`, `company`, `vehicle_type`, `driver (546, '98A04317', 'XE KHÁCH', 'CÔNG TY TNHH ĐIỆN TỬ TE SUNG ', 'Camry MẦU ĐEN ', 'Vũ Văn Trung', '0982466207', '121202505', 1580547165, 1580547165), (547, '98C15548', 'XE TẢI', 'CÔNG TY TNHH ĐIỆN TỬ TE SUNG ', ' KIA MẦU TRẮNG ', 'Thân Văn Đức', '0979936932', '121189864', 1580547165, 1580547165), (548, '98C12753', 'XE TẢI', 'CÔNG TY TNHH ĐIỆN TỬ TE SUNG ', ' KIA MẦU TRẮNG ', 'Nguyễn Văn Điệp ', '01688787479', '122005891', 1580547165, 1580547165), -(549, '98C04479\n', 'XE TẢI', 'CÔNG TY TNHH ĐIỆN TỬ TE SUNG ', ' KIA MẦU TRẮNG ', 'Nguyễn Văn Chiến', '0911010738', '121605383', 1580547165, 1580547165), +(549, '98C04479', 'XE TẢI', 'CÔNG TY TNHH ĐIỆN TỬ TE SUNG ', ' KIA MẦU TRẮNG ', 'Nguyễn Văn Chiến', '0911010738', '121605383', 1580547165, 1580547165), (550, '20A01816', 'XE KHÁCH', 'CÔNG TY TNHH ĐIỆN TỬ TE SUNG ', 'TOYOTA MẦU XANH', 'Nguyễn Văn Quý', '0974689844', '121487058', 1580547165, 1580547165), (551, '98A17006', 'XE KHÁCH', 'CÔNG TY TNHH ĐIỆN TỬ TE SUNG ', 'VIOS MẦU TRẮNG ', 'Lưu Văn Tuấn', '0965276059', '121482315', 1580547165, 1580547165), (552, '98A18819', 'XE KHÁCH', 'CÔNG TY TNHH ĐIỆN TỬ TE SUNG ', 'Lexus MẦU ĐEN ', 'Vũ Văn Hiếu ', '0987228668', '122123496', 1580547165, 1580547165), @@ -939,12 +939,12 @@ INSERT INTO `vehicle` (`id`, `plate`, `type`, `company`, `vehicle_type`, `driver (743, '89LD00385', 'XE TẢI', 'HYUNDAI ALUMINUM VINA', NULL, 'NGUYỄN VĂN HƯNG', '0365644247', '33083001039', 1580547165, 1580547165), (744, '29C92902', 'XE TẢI', 'CÔNG TY TNHH PARTRON VINA', NULL, 'Nguyễn Phương Công', '0965573335', '1089021093', 1580547165, 1580547165), (745, '29C63605', 'XE TẢI', 'CÔNG TY TNHH PARTRON VINA', NULL, 'Chu Văn Minh', '0975137582', '13655117', 1580547165, 1580547165), -(746, ' 29H20289', 'XE TẢI', 'CÔNG TY TNHH PARTRON VINA', NULL, 'Lê Văn Phong', '0977116067', '1085022679', 1580547165, 1580547165), -(747, ' 30Y9573', 'XE TẢI', 'CÔNG TY TNHH PARTRON VINA', NULL, 'Nguyễn Trọng Hân', '0963560101', '001088007580 ', 1580547165, 1580547165), +(746, '29H20289', 'XE TẢI', 'CÔNG TY TNHH PARTRON VINA', NULL, 'Lê Văn Phong', '0977116067', '1085022679', 1580547165, 1580547165), +(747, '30Y9573', 'XE TẢI', 'CÔNG TY TNHH PARTRON VINA', NULL, 'Nguyễn Trọng Hân', '0963560101', '001088007580 ', 1580547165, 1580547165), (748, '29C95410', 'XE TẢI', 'CÔNG TY TNHH PARTRON VINA', NULL, 'Nguyễn Trung Ngọc', '0336993538', '1088005633', 1580547165, 1580547165), (749, '29C31397 ', 'XE TẢI', 'CÔNG TY TNHH PARTRON VINA', NULL, ' Lưu Văn Đại  ', '0969591638', '001080015895 ', 1580547165, 1580547165), (750, '29C95152', 'XE TẢI', 'CÔNG TY TNHH PARTRON VINA', NULL, 'Hoàng Việt Phương', '0945585266', '12628913', 1580547165, 1580547165), -(751, '29H20891   ', 'XE TẢI', 'CÔNG TY TNHH PARTRON VINA', NULL, ' Nguyễn Văn Ánh     ', '0392403333', '001084022836 ', 1580547165, 1580547165), +(751, '29H20891', 'XE TẢI', 'CÔNG TY TNHH PARTRON VINA', NULL, ' Nguyễn Văn Ánh     ', '0392403333', '001084022836 ', 1580547165, 1580547165), (752, '99A29666', 'XE KHÁCH', 'CÔNG TY TNHH ADVANCED ENGINEERING PLASTIC VINA', 'XE KIA- INNOVA', 'Nguyễn Quang Tuấn', '0972016111', '125211288', 1580547165, 1580547165), (753, '99LD01772', 'XE TẢI', 'CÔNG TY TNHH CYN VINA', 'KIA (1.9T)', 'NGUYỄN ĐỨC VĂN', '0376941791', '122012097', 1580547165, 1580547165), (754, '99LD01892', 'XE TẢI', 'CÔNG TY TNHH WILLTECH VINA', 'Xe tải 1.9 T', 'Nguyễn Văn Đính', '0964165292', '125886026', 1580547165, 1580547165), @@ -952,7 +952,7 @@ INSERT INTO `vehicle` (`id`, `plate`, `type`, `company`, `vehicle_type`, `driver (756, '99C12440', 'XE TẢI', 'CÔNG TY TNHH THẢO NGỌC HÀ NỘI', 'Xe tải KIA 165', 'Nguyễn Duy Tạo ', '0912809996', '125258920', 1580547165, 1580547165), (757, '29C46581', 'XE TẢI', 'CÔNG TY TNHH VIỆT PHÚ AN', NULL, NULL, '', '', 1580547165, 1580547165), (758, '20LD00376', 'XE TẢI', 'CÔNG TY TNHH HAN-VIET MOLD VINA', NULL, 'Hà Văn Sinh', '0977860228', '091616225', 1580547165, 1580547165), -(759, '20LD00295\n', 'XE TẢI', 'CÔNG TY TNHH DAHAM VINA', NULL, 'Đặng Đức Thảo', '0989375285', '0908.675.42', 1580547165, 1580547165), +(759, '20LD00295', 'XE TẢI', 'CÔNG TY TNHH DAHAM VINA', NULL, 'Đặng Đức Thảo', '0989375285', '0908.675.42', 1580547165, 1580547165), (760, '20LD00310', 'XE TẢI', 'CÔNG TY TNHH DAHAM VINA', NULL, 'Nguyễn Văn Giáp', '0962881832', '0916.952.10', 1580547165, 1580547165), (761, '98C12933', 'XE TẢI', 'CÔNG TY TNHH MỘT THÀNH VIÊN T/S VINA', NULL, NULL, '', '', 1580547165, 1580547165), (762, '99LD01945', 'XE KHÁCH', 'CÔNG TY TNHH YOUNG ONE', 'XE ECO SPORT', 'TỐNG VĂN ViỆT', '0968199339', '125118973', 1580547165, 1580547165), diff --git a/models/LogsUnknow.php b/models/LogsUnknow.php index 1765b4b9..321945e4 100644 --- a/models/LogsUnknow.php +++ b/models/LogsUnknow.php @@ -50,15 +50,15 @@ class LogsUnknow extends \yii\db\ActiveRecord { return [ 'id' => 'ID', - 'plate' => 'Plate', - 'plate_image_in' => 'Plate Image In', + 'plate' => 'Biển số xe', + 'plate_image_in' => 'Ảnh biển vào', 'frame_image_in' => 'Frame Image In', - 'time_in' => 'Time In', - 'plate_image_out' => 'Plate Image Out', + 'time_in' => 'Thời gian vào', + 'plate_image_out' => 'Ảnh biển ra', 'frame_image_out' => 'Frame Image Out', - 'time_out' => 'Time Out', - 'seal_no' => 'Seal No', - 'note' => 'Note', + 'time_out' => 'Thời gian ra', + 'seal_no' => 'SEAL_NO', + 'note' => 'Nội dung khác', 'factory' => 'Factory', ]; } diff --git a/models/LogsUnknowSearch.php b/models/LogsUnknowSearch.php new file mode 100644 index 00000000..5b5908b8 --- /dev/null +++ b/models/LogsUnknowSearch.php @@ -0,0 +1,76 @@ + $query, + ]); + + $this->load($params); + + if (!$this->validate()) { + // uncomment the following line if you do not want to return any records when validation fails + // $query->where('0=1'); + return $dataProvider; + } + + // grid filtering conditions + $query->andFilterWhere([ + 'id' => $this->id, + 'time_in' => $this->time_in, + 'time_out' => $this->time_out, + ]); + + $query->andFilterWhere(['like', 'plate', $this->plate]) + ->andFilterWhere(['like', 'plate_image_in', $this->plate_image_in]) + ->andFilterWhere(['like', 'frame_image_in', $this->frame_image_in]) + ->andFilterWhere(['like', 'plate_image_out', $this->plate_image_out]) + ->andFilterWhere(['like', 'frame_image_out', $this->frame_image_out]) + ->andFilterWhere(['like', 'seal_no', $this->seal_no]) + ->andFilterWhere(['like', 'note', $this->note]) + ->andFilterWhere(['like', 'factory', $this->factory]); + + return $dataProvider; + } + +} diff --git a/views/logs-unknow/index.tpl b/views/logs-unknow/index.tpl new file mode 100644 index 00000000..ffebffea --- /dev/null +++ b/views/logs-unknow/index.tpl @@ -0,0 +1,80 @@ +{extends file=$smarty.current_dir|cat:'/../extends.tpl'} +{use class="yii\helpers\Url"} +{use class="yii\grid\GridView"} +{use class="app\assets\LogsAsset"} +{LogsAsset::register($this)|void} +{block name='content'} +
+
+
+
+
Từ
+ +
+
+
+
+
+
+
Đến
+ +
+
+
+
+ +
+
+ +
+
+
+ {GridView::widget([ + 'dataProvider' => $dataProvider, + 'filterModel' => $searchModel, + 'layout'=> \app\helpers\LogsGrid::getLayout(), + 'tableOptions' => [ + 'class' => 'table table-striped table-bordered', + 'style' => 'background:#fff;min-width:700px;' + ], + 'columns' => [ + ['class' => 'yii\grid\SerialColumn'], + 'plate', + 'factory', + 'seal_no', + [ + 'attribute' => "plate_image_in", + 'format' => 'raw', + 'contentOptions' => ['class' => 'text-center'], + 'headerOptions' => ['style' => 'width:8%'], + 'value' => \app\helpers\LogsGrid::plateIn() + ], + [ + 'attribute' => "time_in", + 'format' => 'raw', + 'contentOptions' => ['class' => 'text-center'], + 'headerOptions' => ['style' => 'width:5%'], + 'value' => \app\helpers\LogsGrid::timeIn() + ], + [ + 'attribute' => "plate_image_out", + 'format' => 'raw', + 'contentOptions' => ['class' => 'text-center'], + 'headerOptions' => ['style' => 'width:8%'], + 'value' => \app\helpers\LogsGrid::plateOut() + ], + [ + 'attribute' => "time_out", + 'format' => 'raw', + 'contentOptions' => ['class' => 'text-center'], + 'headerOptions' => ['style' => 'width:5%'], + 'value' => \app\helpers\LogsGrid::timeOut() + ], + 'note' + ] + ])} +{/block} \ No newline at end of file diff --git a/views/logs/index.tpl b/views/logs/index.tpl index da7dc1f0..d5d96330 100644 --- a/views/logs/index.tpl +++ b/views/logs/index.tpl @@ -31,6 +31,11 @@ Xuất báo cáo +
+ + Xe khác + +

{GridView::widget([ @@ -43,38 +48,40 @@ ], 'columns' => [ ['class' => 'yii\grid\SerialColumn'], - [ - 'attribute' => 'vehicle_id', - 'value' => 'vehicle.plate' - ], + 'vehicle.plate', + 'vehicle.type', + 'vehicle.company', + 'vehicle.driver', + 'vehicle.telephone', + 'vehicle.indentity_card', 'factory', 'seal_no', [ 'attribute' => "plate_image_in", 'format' => 'raw', 'contentOptions' => ['class' => 'text-center'], - 'headerOptions' => ['style' => 'width:10%'], + 'headerOptions' => ['style' => 'width:8%'], 'value' => \app\helpers\LogsGrid::plateIn() ], [ 'attribute' => "time_in", 'format' => 'raw', 'contentOptions' => ['class' => 'text-center'], - 'headerOptions' => ['style' => 'width:18%'], + 'headerOptions' => ['style' => 'width:5%'], 'value' => \app\helpers\LogsGrid::timeIn() ], [ 'attribute' => "plate_image_out", 'format' => 'raw', 'contentOptions' => ['class' => 'text-center'], - 'headerOptions' => ['style' => 'width:10%'], + 'headerOptions' => ['style' => 'width:8%'], 'value' => \app\helpers\LogsGrid::plateOut() ], [ 'attribute' => "time_out", 'format' => 'raw', 'contentOptions' => ['class' => 'text-center'], - 'headerOptions' => ['style' => 'width:18%'], + 'headerOptions' => ['style' => 'width:5%'], 'value' => \app\helpers\LogsGrid::timeOut() ], 'note'