<?php
/**
 * Created by PhpStorm.
 * User: tandunzhao
 * Date: 2017/11/17
 * Time: 下午4:40
 */

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


class TransformAccountRecordTransformer
{
    public function transform($item)
    {
        return [
            'id' => $item->id,
            'company_name' => $item->company_name,
            'account' => $item->account,
            'fee' => $item->fee,
            'day' => $item->day,
            'remark' => $item->remark,
            'staus' => $item->status,
            '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)),
        ];
    }
}