<?php

namespace App\Http\Resources\Inquiry;

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

/** @mixin PlanTranslation */
class PlanTranslationResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'id'          => $this->id,
            'slug'        => $this->plan->slug,
            'name'        => $this->name,
            'description' => $this->description,
        ];
    }
}
