<?php

namespace App\Http\Resources;

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

/**
 * @property mixed terms_condition_title
 * @property mixed terms_condition_description
 * @property mixed privacy_policy_title
 * @property mixed privacy_policy_description
 */
class PrivacyResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
//            'title' => $this->terms_condition_title,
//            'description' => stripText($this->terms_condition_description),
            'title' => $this->privacy_policy_title,
            'description' => stripText(html_entity_decode($this->privacy_policy_description)),
        ];
    }
}
