]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Изменение вида таблиц и поиска
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 20 Feb 2025 12:35:17 +0000 (15:35 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 20 Feb 2025 12:35:17 +0000 (15:35 +0300)
12 files changed:
erp24/api2/controllers/YandexMarketController.php
erp24/records/MarketplaceOrders.php
erp24/records/MarketplaceOrdersSearch.php
erp24/views/marketplace-order-delivery/index.php
erp24/views/marketplace-order-delivery/view.php
erp24/views/marketplace-order-items/index.php
erp24/views/marketplace-order-items/view.php
erp24/views/marketplace-order-status-history/index.php
erp24/views/marketplace-order-status-history/view.php
erp24/views/marketplace-order-status-types/index.php
erp24/views/marketplace-orders/index.php
erp24/views/marketplace-orders/view.php

index 760c07964b899baca6c589c9816f489039360ac8..0e8a5143b550da3ce800e82150d5ec868dcfb30f 100644 (file)
@@ -530,5 +530,4 @@ class YandexMarketController extends Controller
         }
         return json_encode(["response" => "OK"]);
     }
-
 }
index eda6edf3ae6489e36e51a2107d273ae66f66b0ba..fed84a3ac4a06ad98072686defe203b97139a361 100644 (file)
@@ -2,6 +2,7 @@
 
 namespace yii_app\records;
 
+use app\controllers\MarketplaceOrderStatusTypesController;
 use Yii;
 
 /**
@@ -28,7 +29,9 @@ use Yii;
  */
 class MarketplaceOrders extends \yii\db\ActiveRecord
 {
-
+    const STATUSES_1C = [
+        1 => 'Создан в ЕРП'
+    ];
 
     /**
      * {@inheritdoc}
@@ -87,4 +90,17 @@ class MarketplaceOrders extends \yii\db\ActiveRecord
         ];
     }
 
+    public function getStore()
+    {
+        return $this->hasOne(CityStore::class, ['id' => 'store_id']);
+    }
+
+    public function getStatus()
+    {
+        return $this->hasOne(MarketplaceOrderStatusTypes::class, ['id' => 'status_id']);
+    }
+    public function getSubstatus()
+    {
+        return $this->hasOne(MarketplaceOrderStatusTypes::class, ['id' => 'substatus_id']);
+    }
 }
index c1fa088db3437d0e5dac7e2a85b227d9a60207e6..b5b1a8190c06b8b5985503723b09a8998e776209 100644 (file)
@@ -11,6 +11,11 @@ use yii_app\records\MarketplaceOrders;
  */
 class MarketplaceOrdersSearch extends MarketplaceOrders
 {
+
+    public $store_name; // Добавляем свойство для поиска по названию магазина
+    public $status_code; // Добавляем свойство для поиска по коду статуса
+    public $substatus_code; // Добавляем свойство для поиска по коду подстатуса
+
     /**
      * {@inheritdoc}
      */
@@ -18,7 +23,7 @@ class MarketplaceOrdersSearch extends MarketplaceOrders
     {
         return [
             [['id', 'store_id', 'status_id', 'substatus_id', 'cancel_requested', 'status_1c'], 'integer'],
-            [['marketplace_order_id', 'warehouse_guid', 'creation_date', 'updated_at', 'tax_system', 'payment_type', 'payment_method', 'raw_data', 'guid'], 'safe'],
+            [['marketplace_order_id', 'warehouse_guid', 'creation_date', 'updated_at', 'tax_system', 'payment_type', 'payment_method', 'raw_data', 'guid','store_name', 'status_code', 'substatus_code'], 'safe'],
             [['total', 'delivery_total', 'buyer_total_before_discount'], 'number'],
         ];
     }
@@ -42,9 +47,8 @@ class MarketplaceOrdersSearch extends MarketplaceOrders
      */
     public function search($params, $formName = null)
     {
-        $query = MarketplaceOrders::find();
-
-        // add conditions that should always apply here
+        $query = MarketplaceOrders::find()
+            ->joinWith(['store', 'status statusAlias', 'substatus substatusAlias']);
 
         $dataProvider = new ActiveDataProvider([
             'query' => $query,
@@ -53,12 +57,10 @@ class MarketplaceOrdersSearch extends MarketplaceOrders
         $this->load($params, $formName);
 
         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
+        // Фильтрация по ID и числовым полям
         $query->andFilterWhere([
             'id' => $this->id,
             'store_id' => $this->store_id,
@@ -73,6 +75,7 @@ class MarketplaceOrdersSearch extends MarketplaceOrders
             'status_1c' => $this->status_1c,
         ]);
 
+        // Фильтрация по строковым полям
         $query->andFilterWhere(['ilike', 'marketplace_order_id', $this->marketplace_order_id])
             ->andFilterWhere(['ilike', 'warehouse_guid', $this->warehouse_guid])
             ->andFilterWhere(['ilike', 'tax_system', $this->tax_system])
@@ -81,6 +84,15 @@ class MarketplaceOrdersSearch extends MarketplaceOrders
             ->andFilterWhere(['ilike', 'raw_data', $this->raw_data])
             ->andFilterWhere(['ilike', 'guid', $this->guid]);
 
+        // Поиск по названию магазина
+        $query->andFilterWhere(['ilike', 'marketplace_store.name', $this->store_name]);
+
+        // Фильтр по коду статуса (с псевдонимом)
+        $query->andFilterWhere(['ilike', 'statusAlias.code', $this->status_code]);
+
+        // Фильтр по коду подстатуса (с псевдонимом)
+        $query->andFilterWhere(['ilike', 'substatusAlias.code', $this->substatus_code]);
+
         return $dataProvider;
     }
 }
index 600faef45183fc310e50986ed06a107648eade51..a9c43e184d7690df3329c72e1fc9cc5ce2ba8fe0 100644 (file)
@@ -10,15 +10,18 @@ use yii\grid\GridView;
 /** @var yii_app\records\MarketplaceOrderDeliverySearch $searchModel */
 /** @var yii\data\ActiveDataProvider $dataProvider */
 
-$this->title = 'Marketplace Order Deliveries';
+$this->title = 'Доставки с заказов';
 $this->params['breadcrumbs'][] = $this->title;
 ?>
-<div class="marketplace-order-delivery-index">
+<div class="marketplace-order-delivery-index p-4">
 
     <h1><?= Html::encode($this->title) ?></h1>
 
     <p>
-        <?= Html::a('Create Marketplace Order Delivery', ['create'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Заказы', ['/marketplace-orders/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Элементы заказов', ['/marketplace-order-items/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Истории статусов заказов', ['/marketplace-order-status-history/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Типы статусов заказов', ['/marketplace-order-status-types/index'], ['class' => 'btn btn-success']) ?>
     </p>
 
     <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
@@ -29,28 +32,37 @@ $this->params['breadcrumbs'][] = $this->title;
         'columns' => [
             ['class' => 'yii\grid\SerialColumn'],
 
-            'id',
-            'order_id',
+           // 'id',
+            [
+                'attribute' => 'order_id',
+                'format' => 'raw',
+                'value' => function ($model) {
+                    return Html::a($model->order_id, ['marketplace-orders/view', 'id' => $model->order_id], [
+                        'target' => '_blank',
+                        'title' => 'Просмотреть заказ'
+                    ]);
+                }
+            ],
             'type',
             'service_name',
             'partner_type',
             //'country',
             //'postcode',
-            //'city',
-            //'street',
-            //'house',
-            //'apartment',
+            'city',
+            'street',
+            'house',
+            'apartment',
             //'latitude',
             //'longitude',
-            //'delivery_start',
-            //'delivery_end',
-            //'courier_full_name',
-            //'courier_phone',
+            'delivery_start',
+            'delivery_end',
+            'courier_full_name',
+            'courier_phone',
             //'courier_extension',
             //'courier_vehicle_number',
             //'courier_vehicle_description',
-            [
-                'class' => ActionColumn::className(),
+            ['template' => '{view}',
+                'class' => ActionColumn::class,
                 'urlCreator' => function ($action, MarketplaceOrderDelivery $model, $key, $index, $column) {
                     return Url::toRoute([$action, 'id' => $model->id]);
                  }
index 91a90ae677a9959fbd83b559c8374e0bf4f41b08..94c39a1774e4ad45eb5cffc19f31200d40809303 100644 (file)
@@ -11,26 +11,25 @@ $this->params['breadcrumbs'][] = ['label' => 'Marketplace Order Deliveries', 'ur
 $this->params['breadcrumbs'][] = $this->title;
 \yii\web\YiiAsset::register($this);
 ?>
-<div class="marketplace-order-delivery-view">
-
+<div class="marketplace-order-delivery-view p-4">
+    <?= Html::a('Назад', ['index'], ['class' => 'btn btn-primary my-4']) ?>
     <h1><?= Html::encode($this->title) ?></h1>
 
-    <p>
-        <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
-        <?= Html::a('Delete', ['delete', 'id' => $model->id], [
-            'class' => 'btn btn-danger',
-            'data' => [
-                'confirm' => 'Are you sure you want to delete this item?',
-                'method' => 'post',
-            ],
-        ]) ?>
-    </p>
 
     <?= DetailView::widget([
         'model' => $model,
         'attributes' => [
             'id',
-            'order_id',
+            [
+                'attribute' => 'order_id',
+                'format' => 'raw',
+                'value' => function ($model) {
+                    return Html::a($model->order_id, ['marketplace-orders/view', 'id' => $model->order_id], [
+                        'target' => '_blank',
+                        'title' => 'Просмотреть заказ'
+                    ]);
+                }
+            ],
             'type',
             'service_name',
             'partner_type',
index 94731453a2cc5a719f8714d508913efac20e483b..e08a043f7027c6c1a32c703de5ca0a66f128c9c2 100644 (file)
@@ -10,15 +10,18 @@ use yii\grid\GridView;
 /** @var yii_app\records\MarketplaceOrderItemsSearch $searchModel */
 /** @var yii\data\ActiveDataProvider $dataProvider */
 
-$this->title = 'Marketplace Order Items';
+$this->title = 'Элементы заказа';
 $this->params['breadcrumbs'][] = $this->title;
 ?>
-<div class="marketplace-order-items-index">
+<div class="marketplace-order-items-index p-4">
 
     <h1><?= Html::encode($this->title) ?></h1>
 
     <p>
-        <?= Html::a('Create Marketplace Order Items', ['create'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Заказы', ['/marketplace-orders/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Доставки заказов', ['/marketplace-order-delivery/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Истории статусов заказов', ['/marketplace-order-status-history/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Типы статусов заказов', ['/marketplace-order-status-types/index'], ['class' => 'btn btn-success']) ?>
     </p>
 
     <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
@@ -30,7 +33,16 @@ $this->params['breadcrumbs'][] = $this->title;
             ['class' => 'yii\grid\SerialColumn'],
 
             'id',
-            'order_id',
+            [
+                'attribute' => 'order_id',
+                'format' => 'raw',
+                'value' => function ($model) {
+                    return Html::a($model->order_id, ['marketplace-orders/view', 'id' => $model->order_id], [
+                        'target' => '_blank',
+                        'title' => 'Просмотреть заказ'
+                    ]);
+                }
+            ],
             'external_item_id',
             'offer_id',
             'offer_name',
@@ -46,7 +58,8 @@ $this->params['breadcrumbs'][] = $this->title;
             //'promos:ntext',
             //'subsidies:ntext',
             [
-                'class' => ActionColumn::className(),
+                    'template' => '{view}',
+                'class' => ActionColumn::class,
                 'urlCreator' => function ($action, MarketplaceOrderItems $model, $key, $index, $column) {
                     return Url::toRoute([$action, 'id' => $model->id]);
                  }
index fc19e381f9bc77515edcb6a35d03926b206f8505..a1920a79d0a32e97f0af910b94469abec27bfe0f 100644 (file)
@@ -12,25 +12,25 @@ $this->params['breadcrumbs'][] = $this->title;
 \yii\web\YiiAsset::register($this);
 ?>
 <div class="marketplace-order-items-view">
-
+    <?= Html::a('Назад', ['index'], ['class' => 'btn btn-primary my-4']) ?>
     <h1><?= Html::encode($this->title) ?></h1>
 
-    <p>
-        <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
-        <?= Html::a('Delete', ['delete', 'id' => $model->id], [
-            'class' => 'btn btn-danger',
-            'data' => [
-                'confirm' => 'Are you sure you want to delete this item?',
-                'method' => 'post',
-            ],
-        ]) ?>
-    </p>
+
 
     <?= DetailView::widget([
         'model' => $model,
         'attributes' => [
             'id',
-            'order_id',
+            [
+                'attribute' => 'order_id',
+                'format' => 'raw',
+                'value' => function ($model) {
+                    return Html::a($model->order_id, ['marketplace-orders/view', 'id' => $model->order_id], [
+                        'target' => '_blank',
+                        'title' => 'Просмотреть заказ'
+                    ]);
+                }
+            ],
             'external_item_id',
             'offer_id',
             'offer_name',
index 9be5c4dd9575573c5e78e26d0e32a5f444cb9331..bff79ec24f821d46422b87d3f99434aa919cfc96 100644 (file)
@@ -13,14 +13,16 @@ use yii\grid\GridView;
 $this->title = 'Marketplace Order Status Histories';
 $this->params['breadcrumbs'][] = $this->title;
 ?>
-<div class="marketplace-order-status-history-index">
+<div class="marketplace-order-status-history-index p-4">
 
     <h1><?= Html::encode($this->title) ?></h1>
 
     <p>
-        <?= Html::a('Create Marketplace Order Status History', ['create'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Доставки заказов', ['/marketplace-order-delivery/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Элементы заказов', ['/marketplace-order-items/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Заказы', ['/marketplace-orders/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Типы статусов заказов', ['/marketplace-order-status-types/index'], ['class' => 'btn btn-success']) ?>
     </p>
-
     <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
 
     <?= GridView::widget([
@@ -30,15 +32,25 @@ $this->params['breadcrumbs'][] = $this->title;
             ['class' => 'yii\grid\SerialColumn'],
 
             'id',
-            'order_id',
+            [
+                'attribute' => 'order_id',
+                'format' => 'raw',
+                'value' => function ($model) {
+                    return Html::a($model->order_id, ['marketplace-orders/view', 'id' => $model->order_id], [
+                        'target' => '_blank',
+                        'title' => 'Просмотреть заказ'
+                    ]);
+                }
+            ],
             'status_id',
             'substatus_id',
             'active',
-            //'date_from',
-            //'date_end',
-            //'initiator:ntext',
+            'date_from',
+            'date_end',
+            'initiator:ntext',
             [
-                'class' => ActionColumn::className(),
+                    'template' => '{view}',
+                'class' => ActionColumn::class,
                 'urlCreator' => function ($action, MarketplaceOrderStatusHistory $model, $key, $index, $column) {
                     return Url::toRoute([$action, 'id' => $model->id]);
                  }
index 779111494d11621d3f53ff22a709e2ba6dd5d80f..a606771f73a87cda326c59a692e6e6f891cd3de6 100644 (file)
@@ -11,20 +11,11 @@ $this->params['breadcrumbs'][] = ['label' => 'Marketplace Order Status Histories
 $this->params['breadcrumbs'][] = $this->title;
 \yii\web\YiiAsset::register($this);
 ?>
-<div class="marketplace-order-status-history-view">
-
+<div class="marketplace-order-status-history-view p-4">
+    <?= Html::a('Назад', ['index'], ['class' => 'btn btn-primary my-4']) ?>
     <h1><?= Html::encode($this->title) ?></h1>
 
-    <p>
-        <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
-        <?= Html::a('Delete', ['delete', 'id' => $model->id], [
-            'class' => 'btn btn-danger',
-            'data' => [
-                'confirm' => 'Are you sure you want to delete this item?',
-                'method' => 'post',
-            ],
-        ]) ?>
-    </p>
+   
 
     <?= DetailView::widget([
         'model' => $model,
index e52728e0a7813f5e002c8bacf22f6a25889190c5..006379821721ba353d51349a93dd48e54220ab3c 100644 (file)
@@ -14,7 +14,12 @@ $this->title = 'Статусы заказов Яндекс Маркет';
 $this->params['breadcrumbs'][] = $this->title;
 ?>
 <div class="marketplace-order-status-types-index p-4">
-
+    <p>
+        <?= Html::a('Доставки заказов', ['/marketplace-order-delivery/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Элементы заказов', ['/marketplace-order-items/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Истории статусов заказов', ['/marketplace-order-status-history/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Заказы', ['/marketplace-orders/index'], ['class' => 'btn btn-success']) ?>
+    </p>
     <h1><?= Html::encode($this->title) ?></h1>
 
     <p>
index c842bdf46efb3e120b9a3368f3140f285ea11084..e2afb51485783ee73268172016fa3c48530d3281 100644 (file)
@@ -10,15 +10,18 @@ use yii\grid\GridView;
 /** @var yii_app\records\MarketplaceOrdersSearch $searchModel */
 /** @var yii\data\ActiveDataProvider $dataProvider */
 
-$this->title = 'Marketplace Orders';
+$this->title = 'Заказы с маркетплейсов (Яндекс Маркет)';
 $this->params['breadcrumbs'][] = $this->title;
 ?>
-<div class="marketplace-orders-index">
+<div class="marketplace-orders-index p-4">
 
     <h1><?= Html::encode($this->title) ?></h1>
 
     <p>
-        <?= Html::a('Create Marketplace Orders', ['create'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Доставки заказов', ['/marketplace-order-delivery/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Элементы заказов', ['/marketplace-order-items/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Истории статусов заказов', ['/marketplace-order-status-history/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Типы статусов заказов', ['/marketplace-order-status-types/index'], ['class' => 'btn btn-success']) ?>
     </p>
 
     <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
@@ -29,29 +32,61 @@ $this->params['breadcrumbs'][] = $this->title;
         'columns' => [
             ['class' => 'yii\grid\SerialColumn'],
 
-            'id',
+            //'id',
             'marketplace_order_id',
-            'store_id',
-            'status_id',
-            'substatus_id',
+            [
+                'attribute' => 'store_id',
+                'value' => function ($model) {
+                    return $model->store->name ?? '-';
+                },
+                'filter' => Html::input('text', 'MarketplaceOrdersSearch[store_name]', $searchModel->store_name, ['class' => 'form-control']),
+            ],
+            [
+                'attribute' => 'status_id',
+                'format' => 'raw',
+                'value' => function ($model) {
+                    $status = $model->status->code ?? '';
+                    $class = '';
+                    if ($status === 'DELIVERED') {
+                        $class = 'bg-success text-white';
+                    } elseif ($status === 'CANCELLED') {
+                        $class = 'bg-danger text-white';
+                    }
+                    return Html::tag('span', $status, ['class' => "badge $class"]);
+                },
+                'filter' => Html::input('text', 'MarketplaceOrdersSearch[status_code]', $searchModel->status_code, ['class' => 'form-control']),
+            ],
+            [
+                'attribute' => 'substatus_id',
+                'value' => function ($model) {
+                    return $model->substatus->code ?? '-';
+                },
+                'filter' => Html::input('text', 'MarketplaceOrdersSearch[substatus_code]', $searchModel->substatus_code, ['class' => 'form-control']),
+            ],
             //'warehouse_guid',
-            //'creation_date',
-            //'updated_at',
-            //'total',
-            //'delivery_total',
-            //'buyer_total_before_discount',
+            'creation_date',
+            'updated_at',
+            'total',
+            'delivery_total',
+            'buyer_total_before_discount',
             //'tax_system',
             //'payment_type',
             //'payment_method',
             //'cancel_requested',
             //'raw_data:ntext',
-            //'guid',
-            //'status_1c',
+            'guid',
+            [
+                'attribute' => 'status_1c',
+                'value' => function ($model) {
+                    return MarketplaceOrders::STATUSES_1C[$model->status_1c];
+                }
+            ],
             [
-                'class' => ActionColumn::className(),
+                    'template' => '{view}',
+                'class' => ActionColumn::class,
                 'urlCreator' => function ($action, MarketplaceOrders $model, $key, $index, $column) {
                     return Url::toRoute([$action, 'id' => $model->id]);
-                 }
+                }
             ],
         ],
     ]); ?>
index 9afbae359f15ede62a7a83d9c1fd06a7899ca486..2f4ea5abccbb5527bf045d40590241239f6ab685 100644 (file)
@@ -2,38 +2,44 @@
 
 use yii\helpers\Html;
 use yii\widgets\DetailView;
+use yii_app\records\MarketplaceOrders;
 
 /** @var yii\web\View $this */
 /** @var yii_app\records\MarketplaceOrders $model */
 
-$this->title = $model->id;
+$this->title = 'Заказ магазина ' . $model->store->name . ' от ' . $model->creation_date;
 $this->params['breadcrumbs'][] = ['label' => 'Marketplace Orders', 'url' => ['index']];
 $this->params['breadcrumbs'][] = $this->title;
 \yii\web\YiiAsset::register($this);
 ?>
-<div class="marketplace-orders-view">
-
+<div class="marketplace-orders-view p-4">
+    <?= Html::a('Назад', ['index'], ['class' => 'btn btn-primary my-4']) ?>
     <h1><?= Html::encode($this->title) ?></h1>
 
-    <p>
-        <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
-        <?= Html::a('Delete', ['delete', 'id' => $model->id], [
-            'class' => 'btn btn-danger',
-            'data' => [
-                'confirm' => 'Are you sure you want to delete this item?',
-                'method' => 'post',
-            ],
-        ]) ?>
-    </p>
 
     <?= DetailView::widget([
         'model' => $model,
         'attributes' => [
             'id',
             'marketplace_order_id',
-            'store_id',
-            'status_id',
-            'substatus_id',
+            [
+                'attribute' => 'store_id',
+                'value' => function ($model) {
+                    return $model->store->name;
+                }
+            ],
+            [
+                'attribute' => 'status_id',
+                'value' => function ($model) {
+                    return $model->status->code;
+                }
+            ],
+            [
+                'attribute' => 'substatus_id',
+                'value' => function ($model) {
+                    return $model->substatus->code;
+                }
+            ],
             'warehouse_guid',
             'creation_date',
             'updated_at',
@@ -46,7 +52,12 @@ $this->params['breadcrumbs'][] = $this->title;
             'cancel_requested',
             'raw_data:ntext',
             'guid',
-            'status_1c',
+            [
+                'attribute' => 'status_1c',
+                'value' => function ($model) {
+                    return MarketplaceOrders::STATUSES_1C[$model->status_1c];
+                }
+            ],
         ],
     ]) ?>