<?php

namespace App\Http\Resources;

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

class PeriodicActivityResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        return [
            'id' =>$this->id,
            'activity_no' =>$this->activity_no,
            'activity_name' =>$this->activity_name,
            'period' =>$this->period,
            'period_category' =>$this->period_category,
            'next_date' =>$this->next_date,
            'last_date' =>$this->last_date,
            'station_id' =>$this->station_id,
            'description' =>$this->description,
        ];
    }
}
