<?php

namespace App\Http\Resources\Company;

use Illuminate\Http\Resources\Json\JsonResource;

class BillableRateResource 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 [
            'worker_id' => $this->worker_id,
            'worker_sys_id' => $this->worker_sys_id,
            'billable_rate' => $this->billable_rate,
            'original_rate' => $this->original_rate,
            'overhead_amount' => $this->overhead_amount,
            'overhead_type' => $this->overhead_type,
            'service_charge' => $this->service_charge,
            'display_name' => $this->display_name,
            'search_rate' => $this->search_rate,
            'burden_rate' => $this->burden_rate,
            'burden_rate_type' => $this->burden_rate_type,
            'experience_name' => $this->experience_name,
        ];
    }
}
