"options" => ["target" => "_blank"],
]) ?>
<?= Html::hiddenInput('action', 'amoUpdateDate') ?>
- <?= Html::textInput('date', date('Y-m-d'), ['required' => true, 'type' => 'date']) ?>
+ <?= Html::textInput('date', date('Y-m-d'), ['required' => true, 'type' => 'date']) ?>
<?= Html::submitButton('импортировать заказы с amo на выбранную дату', ['class' => 'btn btn-info']) ?>
<?php ActiveForm::end() ?>
<div style="color: red; font-size: 1rem; ">После импортирования заказов из АМО<br> нужно перезагрузить страницу с заказами</div>
<label for="st__<?= $id ?>" class="m-1">
<?= Html::checkbox('statuses[' . $id . ']', null, ['id' => 'st__' . $id]) ?>
<?= $name ?>
- </label>";
+ </label>
<?php endforeach; ?>
<br>
<?= Html::submitButton('вывод', ['class' => 'btn btn-success'])?>
<tbody>
<?php foreach ($ordersAmo as $ind => $orderAmo): ?>
<tr>
- <td class="bg-<?= $yeses[$ind] ? "danger" : "success" ?>">
+ <td class="bg-<?= $yeses[$ind] == 0 ? "danger" : "success" ?>">
<a href="https://bazacvetov24.amocrm.ru/leads/detail/<?= $orderAmo["amo_id"] ?>" target=new><b><?= $orderAmo["dated"] ?></b></a>
<?= $orderAmo["updated_at"] ?> <br> <?= $orderAmo["delivery"] . ' ' . $orderAmo["delivery_time"] ?>
<?php if ($orderAmo["store"] != "" && $orderAmo["store"] != "ул. Аэродромная, 28"): ?>
<?php endif; ?>
</div>
<div class="col-6 text-right">
- <?php if (!empty($users_arr[$orderAmo["florist_id"]])): ?>
- Флорист <?= $users_arr[$orderAmo["florist_id"]] ?>
+ <?php if (!empty($users_arr_group_3_plus[$orderAmo["florist_id"]])): ?>
+ Флорист <?= $users_arr_group_3_plus[$orderAmo["florist_id"]] ?>
<?php endif; ?>
- <?php if (!empty($users_arr[$orderAmo["courier_id"]])): ?>
- Курьер <?= $users_arr[$orderAmo["courier_id"]] ?>
+ <?php if (!empty($users_arr_group_3_plus[$orderAmo["courier_id"]])): ?>
+ Курьер <?= $users_arr_group_3_plus[$orderAmo["courier_id"]] ?>
<?php endif; ?>
</div>
</div>