<?php

namespace App\Http\Controllers\Manage\Channel\Transformers;

class ChannelSellPlatformTransformer
{
    public function transform($Item)
    {
        return [
            'id' => $Item->id,
            'name' => $Item->name,
            'code' => $Item->code,
            'desc' => $Item->desc,
            'bill_type' => $Item->bill_type,
            'created_at' => date("Y-m-d H:i:s", strtotime($Item->created_at)),
            'updated_at' => date("Y-m-d H:i:s", strtotime($Item->updated_at))
        ];
    }
}