<?php

namespace App\Http\Resources\Company\WorkerRequest;

use Illuminate\Http\Resources\Json\JsonResource;

class WorkerRequestApplicationRelationshipCompanyResource 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,
            'name'                => $this->name,
            'logo'                => $this->logo,
            'email'               => $this->email_address,
            'street'              => $this->street_address,
            'city'                => $this->city,
            'state'               => $this->state,
            'zipCode'             => $this->zipcode,
            'telephone1'          => $this->company_tel1,
            'telephone2'          => $this->company_tel2,
            'contactPersonName'   => $this->contact_person_name,
            'contactPersonNumber' => $this->contact_person_no, 
            'serviceCharge'       => $this->service_charge, 
            'overHeadCharge'      => $this->overhead_charge, 
            'overHeadChargeType'  => $this->overhead_type
        ];
    }
}
