<?php

namespace App\Http\Resources\Api;

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

class CourseResource 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,
            'short_description'=>$this->short_description,
            'long_description'=>$this->long_description,
            'image'=>$this->image,
            'from_time'=>$this->from_time,
            'to_time'=>$this->to_time,
            'price'=>$this->price,
            'days'=>'Monday & Tuesday',
        ];
    }
}
