<?php

namespace App\Http\Resources;

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

class PlanResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray($request)
    {
        return [
            'id'                => $this->id,
            'point_id'          => $this->point_id,
            'request_id'        => $this->request_id,
            'day'               => $this->day,
            'timeStart'         => $this->timeStart,
            'timeEnd'           => $this->timeEnd,
            'subgroup_manager_id' => $this->subgroup_manager_id,
            'counter_id'        => $this->counter_id,
            'comment'           => $this->comment,
            'isWorkedOut'       => $this->isWorkedOut,

        ];
    }
}
