<?php

namespace Modules\HR\Transformers;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class BiometricDeviceResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'id' => $this->id,
            'branch_id' => $this->branch_id,
            'name' => $this->name,
            'device_uid' => $this->device_uid,
            'ip_address' => $this->ip_address,
            'port' => $this->port,
            'location' => $this->location,
            'status' => $this->status,
        ];
    }
}
