<?php

namespace App\Http\Resources\Api\Dashboard\Admin\Ingredient;

use Illuminate\Http\Resources\Json\JsonResource;

class SimpleIngredientResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
     */
    public function toArray($request)
    {
        return [
            'id'             => $this->id,
            'title'          => $this->title,
            'desc'           => $this->desc,
            'serving_size'   => $this->serving_size,
            'size_of_cup'    => $this->size_of_cup,
            'calories'       => $this->calories,
            'calories_per'   => $this->calories_per,
        ];
    }
}
