<?php

namespace Modules\Coupon\Models\Resources;

use Illuminate\Http\Resources\Json\JsonResource;
use Modules\Option\Models\Resources\OptionResource;
use Modules\Product\Models\Resources\ProductResource;
use Modules\Region\Models\Resources\RegionResource;

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,
            'status_discount'=>$this->status_discount,
            'discount'=>$this->discount,
            'start_date'=>$this->start_date,
            'end_date'=>$this->end_date,
            'count'=>$this->count,
        ];
    }
}
