<?php 

namespace App\Http\Resources\Dasboard;

use Illuminate\Http\Resources\Json\JsonResource;
use App\Models\User;
use App\Http\Resources\BaseJsonResource;

class ItemResource extends BaseJsonResource
{
    public function toArray($request)
    {

        $array = [
            'name' => $this->name,
            'value' => $this->value,
            's_text' => $this->s_text,
            'value_color' => $this->value_color,
            'scolor' => $this->scolor 
        ];
        
        return $array;
    }
}