<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class BranchesResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'name' => $this->name,
            'phone' => $this->phone,
            'email' => $this->email,
            'address' => $this->address,
            'image_name' => $this->image_name,
            'detail' => $this->detail,
            'status' => $this->status,
            'currency_symbol' => $this->currency_symbol,
            'company_id' => $this->company_id
        ];
    }
}
