<?php

namespace App\Http\Resources\V1;

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

class SubCategoryResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'id'          => $this->id,
            'name_en'        => $this->name_en,
            'name_ar'        => $this->name_ar,
            'slug'          => $this->slug,
            'slug_en'        => $this->slug,
            'slug_ar'        => $this->slug_ar,
            'category_id' => $this->category_id,
            'created_at'  => $this->created_at,
        ];
    }
}
