<?php

return [
    'feed_conf' => [
        'formats' => ['yml', 'gfeed'],
        'periods_list' => [
            'today' => 'сегодня',
            'yesterday' => 'вчера',
            '7days' => '7 дней',
            '30days' => '30 дней',
            'current_month' => 'текущий месяц',
            'prev_month' => 'прошлый месяц',
            'year' => 'год',
        ],
        'colors_active_lines' => [
            /*
            'shows' => '#2CA02C',
            'clicks' => '#D62728',
            'transactions' => '#1F77B4',
            'salemoney' => '#FF7F0E',
            'admoney' => '#9467BD',
            */
            'Views' => '#2CA02C',
            'Clicks' => '#D62728',
            'Orders' => '#1F77B4',
            'OrderSum' => '#FF7F0E',
            'AdMoney' => '#9467BD',
        ],
        'reports' => [
            'common' => [
                'title' => 'Сводный отчет',
                'type' => 'feed_stat',
                //'fields' => ['Views','Clicks','Orders','OrderSum', 'AdMoney'],
                'fields' => ['Views','Clicks','Orders','OrderSum'],
                'main_cat' => [
                    ['name' => 'date', 'title' => 'Дата', 'isSorted' => true],
                    //['name' => 'campaign','title' => 'Кампания','isSorted' => true]
                ],
                'cats' => [
                    'Views' => 'Показы',
                    'Clicks' => 'Клики',
                    'Orders' => 'Заказы',
                    'OrderSum' => 'Заказы на сумму',
                    'AdMoney' => 'Комиссия AddCPM'
                ]
            ],
            'transactions' => [
                'title' => 'Транзакции',
                'type' => 'feed_transactions',
                'fields' => ['Views','Clicks','Orders','OrderSum'],
                'main_cat' => [
                    ['name' => 'order', 'title' => '#OrderID', 'isSorted' => false]
                ],
                'cats' => [
                    'Timestamp' => 'Время<br />Дата',
                    'Basket' => 'Состав корзины',
                    'ViewID' => 'ViewID',
                    'OrderSum' => 'Сумма',
                ]
                /*
                $cats => [
                    'localmoney' => 'localmoney',
                    'usdollarmoney' => 'usdollarmoney'
                ];
                */
            ],
        ]
    ]
];
