<?php

namespace App\Http\Resources;

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

class PackageResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        return [
            'id' => $this->id,
            'name_fa' => $this->name_fa,
            'name_en' => $this->name_en,
            'description' => $this->description,
            'duration_days' => $this->duration_days,
            'price' => $this->price,
            'discount_price' => $this->discount_price,
            'features' => $this->features,
            'badge' => $this->badge,
            'color' => $this->color,
            'icon' => $this->icon,
            'is_featured' => $this->is_featured,
        ];
    }
}
