<?php

namespace App\Http\Resources\V1;

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

class SliderResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        return [
            'id' => $this->id,
            'imageEn' => $this->image_en,
            'imageAr' => $this->image_ar,
            'titleEn' => $this->title_en,
            'titleAr' => $this->title_ar,
            'status' => $this->status,
            'page' => $this->page,
        ];
    }
}
