<?php

namespace App\Http\Resources\Inquiry;

use App\Models\ProvinceTranslation;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

/** @mixin ProvinceTranslation */
class ProvinceTranslationResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'id'         => $this->province_id,
            'country_id' => $this->province->country_id,
            'name'       => $this->name,
        ];
    }
}
