<?php

namespace Modules\Catalog\Http\Resources;

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

class DestinationResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        return [
            'id' => $this->id,
            'name' => $this->name,
            'mm_name' => $this->mm_name,
            'region' => $this->region,
            'description' => $this->description,
            'mm_description' => $this->mm_description,
            'latitude' => $this->latitude,
            'longitude' => $this->longitude,
            'popular' => $this->popular,
        ];
    }
}
