<?php

namespace App\Http\Resources\Admin;

use Illuminate\Http\Resources\Json\JsonResource;

class CompanyAccountDetails 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 [
            'company_id' => $this->id,
            'name' => $this->name,
            'street_address' => $this->street_address,
            'city' => $this->city,
            'state' => $this->state,
            'zipcode' => $this->zipcode,
            'type' => $this->type,
            'expertises' => $this->company_expertises,
            'email_address' => $this->email_address,
            'company_tel' => $this->company_tel,
            'company_tel2' => $this->company_tel2,
            'contact_person_name' => $this->contact_person_name,
            'isFrozen'            => $this->is_freezed,
            'dateFrozen'          => $this->date_freezed
        ];
    }
}
