<?php

namespace App\Http\Resources\Inquiry;

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

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