<?php

namespace App\Http\Resources;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class partResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        return[
        "id"=>$this->id,
        "part_code" => $this->part_code,
        "part_name"=>$this->part_name,
        "manufacture"=>$this->manufacture,
        "mfg_code"=>$this->mfg_code,
        "unit"=>$this->unit,
        "parent"=>$this->parent,
        "min_qty"=>$this->min_qty,
        "Order_point"=>$this->Order_point,
        "Order_qty"=>$this->Order_qty,
        "Qty"=>$this->Qty,
        "Dimention"=>$this->Dimention,
        "Weight"=>$this->Weight,
        "Picture"=>$this->Picture,
        "Description"=>$this->Description,
        "Loc"=>$this->Loc,
        "Row"=>$this->Row,
        "Col"=>$this->Col,
        "Pos"=>$this->Pos,
        "parent_info"=>$this->parent_info,

        ];
    }
}
