<?php
return [
    [
        'key'    => 'sales.carriers.express',
        'name'   => 'Express',
        'sort'   => 3,
        'fields' => [
            [
                'name'          => 'title',
                'title'         => 'admin::app.admin.system.title',
                'type'          => 'depends',
                'depend'        => 'active:1',
                'validation'    => 'required_if:active,1',
                'locale_based'  => true,
            ], [
                'name'          => 'description',
                'title'         => 'admin::app.admin.system.description',
                'type'          => 'textarea',
                'locale_based'  => true,
            ], [
                'name'          => 'default_rate',
                'title'         => 'admin::app.admin.system.rate',
                'type'          => 'depends',
                'depend'        => 'active:1',
                'validation'    => 'required_if:active,1',

            ], [
                'name'    => 'type',
                'title'   => 'admin::app.admin.system.type',
                'type'    => 'select',
                'options' => [
                    [
                        'title' => 'Per Unit',
                        'value' => 'per_unit',
                    ], [
                        'title' => 'Per Order',
                        'value' => 'per_order',
                    ],
                ],
            ], [
                'name'          => 'active',
                'title'         => 'admin::app.admin.system.status',
                'type'          => 'boolean',
                'validation'    => 'required',

            ]
        ]
    ],
    [
        'key'    => 'sales.carriers.post',
        'name'   => 'Tm post',
        'sort'   => 4,
        'fields' => [
            [
                'name'          => 'title',
                'title'         => 'admin::app.admin.system.title',
                'type'          => 'depends',
                'depend'        => 'active:1',
                'validation'    => 'required_if:active,1',
                'locale_based'  => true,
            ], [
                'name'          => 'description',
                'title'         => 'admin::app.admin.system.description',
                'type'          => 'textarea',
                'locale_based'  => true,
            ], [
                'name'          => 'default_rate',
                'title'         => 'admin::app.admin.system.rate',
                'type'          => 'depends',
                'depend'        => 'active:1',
                'validation'    => 'required_if:active,1',

            ], [
                'name'    => 'type',
                'title'   => 'admin::app.admin.system.type',
                'type'    => 'select',
                'options' => [
                    [
                        'title' => 'Per Unit',
                        'value' => 'per_unit',
                    ], [
                        'title' => 'Per Order',
                        'value' => 'per_order',
                    ],
                ],
            ], [
                'name'          => 'active',
                'title'         => 'admin::app.admin.system.status',
                'type'          => 'boolean',
                'validation'    => 'required',

            ]
        ]
    ],
    [
        'key'    => 'general.general.info',
        'name'   => 'admin::app.admin.system.info',
        'sort'   => 2,
        'fields' => [
            [
                'name'          => 'phone',
                'title'         => 'admin::app.admin.system.phone',
                'type'          => 'text',
                'channel_based' => true,
                'locale_based'  => false,
            ],[
                'name'          => 'address',
                'title'         => 'admin::app.admin.system.address',
                'type'          => 'text',
                'channel_based' => true,
                'locale_based'  => true,
            ],[
                'name'          => 'facebook',
                'title'         => 'Facebook',
                'type'          => 'text',
                'channel_based' => false,
                'locale_based'  => false,
            ],[
                'name'          => 'instagram',
                'title'         => 'Instagram',
                'type'          => 'text',
                'channel_based' => false,
                'locale_based'  => false,
            ],[
                'name'          => 'twitter',
                'title'         => 'Twitter',
                'type'          => 'text',
                'channel_based' => false,
                'locale_based'  => false,
            ],[
                'name'          => 'googleplus',
                'title'         => 'GooglePlus',
                'type'          => 'text',
                'channel_based' => false,
                'locale_based'  => false,
            ],[
                'name'          => 'appstore',
                'title'         => 'admin::app.admin.system.appstore',
                'type'          => 'text',
                'channel_based' => false,
                'locale_based'  => false,
            ],[
                'name'          => 'playmarket',
                'title'         => 'admin::app.admin.system.playmarket',
                'type'          => 'text',
                'channel_based' => false,
                'locale_based'  => false,
            ]
        ]
    ]
];
