<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class BranchResource extends JsonResource
{
    
    public function toArray($request)
    {
        return [
            'id'           => encrypt_id($this->id),
            // 'id'           => $this->id,
            'name_km'      => $this->name_km,
            'name_en'      => $this->name_en,
            'phone'        => $this->phone,
            'address'      => $this->address,
            'status_id'    => $this->status_id,
            'image'        => $this->image,
            'image1'       => $this->image1,
        ];
    }
}
