<?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
 */
class TermsResource 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),
        ];
    }
}
