<?php

namespace App\Http\Resources\Courses;

use Illuminate\Http\Resources\Json\JsonResource;

class CourseLessonResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'title' => $this->title,
            'description' => $this->description,
            'duration' => $this->duration,
            'video_url' => $this->video_url,
            'video_type' => $this->video_type,
            'sort_order' => $this->sort_order,
            'is_free' => $this->is_free,
            'is_published' => $this->is_published,
        ];
    }
} 