<?php

namespace App\Http\Resources\Company;

use Illuminate\Http\Resources\Json\JsonResource;

class BorrowBillingLoanInvoice 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,
            'rate' => $this->rate,
            'tax' => $this->tax,
            'status' => $this->status,
            'worker_id' => $this->worker_id,
            'initial_date' => $this->initial_date,
            'cutoff_date' => $this->cutoff_date,
            'days' => $this->days,
            'other_expense' => $this->other_expense,
        ];
    }
}
