<?php

namespace Modules\Coupon\Models\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class CouponResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'code'=>$this->code,
            'start_date'=>$this->start_date,
            'end_date'=>$this->end_date,
            'discount_status'=>$this->discount_status,
            'discount'=>$this->discount,
            'count'=>$this->count,
            'user_count'=>$this->user_count,
            'max_discount'=>$this->max_discount,
            
      ];
    }
}
