<?php

namespace App\Http\Resources\Contact;

use Illuminate\Http\Resources\Json\JsonResource;

class GetAllContactResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
     */
    public function toArray($request)
    {
        return [
                "id"=> $this->id,
                "title"=> $this->title,
                "sub_title"=> $this->sub_title,
                "description"=> $this->description,
                "image"=> $this->image,
                "direction"=> $this->direction,
                "is_have_button"=> $this->is_have_button,
        ];
    }
}
