$shiftArray = $lastCheckinFact ? ['id' => $lastCheckinFact->shift_id, 'name' => $lastCheckinFact->shift->name] : [];
} else {
$adminStores = ArrayHelper::map($userModel->getStores(), 'id', 'name');
- $shiftArray = ArrayHelper::map(Shift::find()->all(), 'id', 'name');
+ $shiftArray = ArrayHelper::map(Shift::find()->andWhere(['not in', 'id', [3, 4, 6]])->all(), 'id', 'name');
}
[['lat', 'lon'], 'double'],
[['comment', 'photo'], 'string'],
[['date'], 'date', 'format' => 'yyyy-M-d'],
- [['time'], 'date', 'format' => 'yyyy-M-d HH:mm:ss'],
+// [['time'], 'date', 'format' => 'yyyy-M-d HH:mm:ss'],
[['admin_id', 'type_id', 'status', 'date', 'time', 'device_id'], 'required'],
];
}