<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class BankResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'company_business_type' => $this->company->business_type,
            'type' => $this->type,
            'reference' => $this->reference,
            'bank_name' => $this->bank_name,
            'bank_branch' => $this->bank_branch,
            'holder_name' => $this->holder_name,
            'account_no' => $this->account_no,
            'country_id' => $this->country_id,
            'default' => $this->default,
            'status' => $this->status,
        ];
    }
}
