<?php

namespace App\Http\Resources;

class CapacityResource extends BaseResource
{
    public function toArray($request): array
    {
        return [
            'team_member_id' => $this->resource['team_member_id'] ?? null,
            'month' => $this->resource['month'] ?? null,
            'working_days' => $this->resource['working_days'] ?? null,
            'person_days' => $this->resource['person_days'] ?? null,
            'hours' => $this->resource['hours'] ?? null,
            'details' => $this->resource['details'] ?? [],
        ];
    }
}
