<?php

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

class ChannelBookSellTransformer
{
    public function transform($Item)
    {
        return [
            'id' => $Item->id,
            'plaform' => $Item->plaform,
            'zsy_bid' => $Item->zsy_bid,
            'book_name' => $Item->book_name,
            'bill_type' => $Item->bill_type,
            'amount' => $Item->amount,
            'sub_num' => $Item->sub_num,
            'date' => $Item->date,
            'month' => $Item->month,
            'is_checked' => $Item->is_checked,
            'is_pushed' => $Item->is_pushed,
            '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))
        ];
    }
}