<?php

namespace App\Http\Resources\Company;

use Illuminate\Http\Resources\Json\JsonResource;

class BorrowApprovedRequest extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'approved_date' => $this->approved_date,
            'worker_id' => $this->worker_id,
            'company_worker_id' => $this->company_worker_id,
            'zipcode' => $this->zipcode,
            'rate' => $this->rate,
            'experience_name' => $this->experience_name,
            'expertise_name' => $this->expertise_name,
            'work_area_lists' => $this->work_area_lists,
            'date_to' => $this->date_to,
        ];
    }
}
