<?php

namespace App\Http\Resources\V1;

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

class FooterTitleDetailResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        return [
            'id' => $this->id,
            'titleEn' => $this->title_en,
            'titleAr' => $this->title_ar,
            'footer_title_id' => $this->footer_title_id,
            'status' => $this->status,
            'redirectTo' => $this->redirect_to,
            'link' => $this->link
        ];
    }
}
