<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

/**
 * @property mixed title
 * @property mixed message
 * @property mixed user_id
 * @property mixed send_to
 * @property mixed is_read
 * @property mixed created_at
 * @property mixed notification_type
 * @property mixed id
 * @property mixed reservation_id
 */
class UserNotificationResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'title' => $this->title,
            'message' => $this->message,
            'user_id' => $this->user_id,
            'send_to' => $this->send_to,
            'is_read' => $this->is_read,
            'page_id' => $this->reservation_id,
            'type' => $this->notification_type,
            'created_at' => $this->created_at,
        ];
    }
}
