<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class MembershipResource extends JsonResource
{
    public function toArray($request)
    {
        return[
            'id'            => $this->id,
            'name'          => $this->name,
            'view_pay'      => $this->view_pay,
            'view_payName'  => $this->view_pay == 1 ? 'Vista de pago' : 'Otros',
            'url_redirect'  => $this->url_redirect,
            'status'        => $this->status
        ];
    }
}
