<?php

namespace App\Http\Resources\Mobile\Manager;

use Illuminate\Http\Resources\Json\JsonResource;

class CheckSupervisorProjectTimeLogProjectRelationshipResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
     */
    public function toArray($request)
    {
        return [
            "id"            =>  $this->id,
            "name"          =>  $this->name,
            "clockIn"       =>  $this->clock_in,
            "clockOut"      =>  $this->clock_out,
            "dateStart"     =>  $this->date_start,
            "dateEnd"       =>  $this->date_end,
        ];
    }
}
