<?php

namespace App\Http\Enum\Business;

use Illuminate\Database\Eloquent\Model;

// 订单表字段枚举数据
class OrderEnum
{
    // 下单来源：1pc端2车主小程序3技师端4智配贴装
    public $ord_source_enum = [
        ['state' => 1, 'state_show' => 'PC'],
        // ['state' => 2, 'state_show'=> '车主端'],
        ['state' => 3, 'state_show' => '技师端'],
        // ['state' => 4, 'state_show' => '合作商'],
        // ['state' => 5, 'state_show' => '智配贴装'],
    ];

    // 返回key=>value格式数据
    public function keyValueEnum($data)
    {
        return array_column($data, 'state_show', 'state');
    }
}
