<?php

namespace App\Http\Resources\Reports\SupplyChain;


use App\Models\AssemblyProducts;
use App\Models\ProductSales;
use App\Models\ProductsQty;
use App\Models\ProductUnits;
use Illuminate\Http\Resources\Json\JsonResource;
use DB;
use Auth;

class StoresSalesDetailsApiResources extends JsonResource
{


    public function toArray($request)
    {


        $lang = $request->header('lang', '');


        $data=[

            'Code'=>$this->Product_Code
            ,'Name'=>$this->P_Ar_Name . ($this-> V_Name .'-'.  $this->VV_Name )
            ,'Unit'=>$this->Unit()->first()->Name
            ,'Qty'=>$this->Qty
            ,'Price'=>$this->Price
            ,'Total'=>$this->Total_Net



        ];

        return $data ;





    }

}
