<?php

namespace App\Http\Resources;


use Illuminate\Http\Resources\Json\JsonResource;
use DB;
use Auth;

class CustomPrintResources extends JsonResource
{
    public function toArray($request)
    {


            $data = [

                'sales_print_type'=>$this->Sales_Print_Type,
                'sales_bill_code'=>$this->Sales_Bill_Code,
                'sales_date'=>$this->Sales_Date,
                'sales_coin'=>$this->Sales_Coin,
                'sales_draw'=>$this->Sales_Draw,
                'sales_payment_method'=>$this->Sales_Payment_Method,
                'sales_status'=>$this->Sales_Status,
                'sales_executor'=>$this->Sales_Executor,
                'sales_refernce_number'=>$this->Sales_Refernce_Number,
                'sales_safe'=>$this->Sales_Safe,
                'sales_client'=>$this->Sales_Client,
                'sales_delegate'=>$this->Sales_Delegate,
                'sales_store'=>$this->Sales_Store,
                'sales_user'=>$this->Sales_User,
                'sales_cost_center'=>$this->Sales_Cost_Center,
                'sales_notes'=>$this->Sales_Notes,
                'sales_pro_code'=>$this->Sales_Pro_Code,
                'sales_pro_name'=>$this->Sales_Pro_Name,
                'sales_pro_unit'=>$this->Sales_Pro_Unit,
                'sales_pro_qty'=>$this->Sales_Pro_Qty,
                'sales_pro_price'=>$this->Sales_Pro_Price,
                'sales_pro_discount'=>$this->Sales_Pro_Discount,
                'sales_pro_total_before_tax'=>$this->Sales_Pro_Total_Bf_Tax,
                'sales_pro_total_tax'=>$this->Sales_Pro_Total_Tax,
                'sales_pro_total'=>$this->Sales_Pro_Total,
                'sales_pro_store'=>$this->Sales_Pro_Store,
                'sales_pro_desc'=>$this->Sales_Pro_Desc,
                'sales_pro_expire_date'=>$this->Sales_Pro_Exp_Date,
                'sales_pro_weight'=>$this->Sales_Pro_Weight,
                'sales_pro_patch_number'=>$this->Sales_Pro_Patch_Number,
                'sales_product_numbers'=>$this->Sales_Product_Numbers,
                'sales_total_qty'=>$this->Sales_Total_Qty,
                'sales_total_discount'=>$this->Sales_Total_Discount,
                'sales_total_before_taxes'=>$this->Sales_Total_Bf_Taxes,
                'sales_total_taxes'=>$this->Sales_Total_Taxes,
                'sales_total_price'=>$this->Sales_Total_Price,
                'sales_paid'=>$this->Sales_Paid,
                'sales_residual'=>$this->Sales_Residual,
                'sales_taknet'=>$this->Sales_Taknet,
                'sales_credit'=>$this->Sales_Credit,
                'sales_barcode'=>$this->Sales_Barcode,
                'sales_text'=>$this->Sales_Text,
                'sales_seal'=>$this->Sales_Seal,
                'purch_print_type'=>$this->Purch_Print_Type,
                'purch_bill_code'=>$this->Purch_Bill_Code,
                'purch_date'=>$this->Purch_Date,
                'purch_vendor_bill_date'=>$this->Purch_Vendor_Bill_Date,
                'purch_coin'=>$this->Purch_Coin,
                'purch_draw'=>$this->Purch_Draw,
                'purch_payment_method'=>$this->Purch_Payment_Method,
                'purch_status'=>$this->Purch_Status,
                'purch_refernce_number'=>$this->Purch_Refernce_Number,
                'purch_safe'=>$this->Purch_Safe,
                'purch_vendor'=>$this->Purch_Vendor,
                'purch_delegate'=>$this->Purch_Delegate,
                'purch_store'=>$this->Purch_Store,
                'purch_user'=>$this->Purch_User,
                'purch_cost_center'=>$this->Purch_Cost_Center,
                'purch_notes'=>$this->Purch_Notes,
                'purch_pro_code'=>$this->Purch_Pro_Code,
                'purch_pro_name'=>$this->Purch_Pro_Name,
                'purch_pro_unit'=>$this->Purch_Pro_Unit,
                'purch_pro_qty'=>$this->Purch_Pro_Qty,
                'purch_pro_price'=>$this->Purch_Pro_Price,
                'purch_pro_discount'=>$this->Purch_Pro_Discount,
                'purch_pro_total_before_tax'=>$this->Purch_Pro_Total_Bf_Tax,
                'purch_pro_total_tax'=>$this->Purch_Pro_Total_Tax,
                'purch_pro_total'=>$this->Purch_Pro_Total,
                'purch_pro_store'=>$this->Purch_Pro_Store,
                'purch_pro_expire_date'=>$this->Purch_Pro_Exp_Date,
                'purch_product_numbers'=>$this->Purch_Product_Numbers,
                'purch_total_qty'=>$this->Purch_Total_Qty,
                'purch_total_discount'=>$this->Purch_Total_Discount,
                'purch_total_before_taxes'=>$this->Purch_Total_Bf_Taxes,
                'purch_total_taxes'=>$this->Purch_Total_Taxes,
                'purch_total_price'=>$this->Purch_Total_Price,
                'purch_paid'=>$this->Purch_Paid,
                'purch_residual'=>$this->Purch_Residual,
                'purch_taknet'=>$this->Purch_Taknet,
                'purch_credit'=>$this->Purch_Credit,
                'purch_barcode'=>$this->Purch_Barcode,
                'purch_text'=>$this->Purch_Text,
                'purch_seal'=>$this->Purch_Seal,
                'sales_total_return'=>$this->Sales_Total_Return,
                'sales_resdiual'=>$this->Sales_Resdiual,
                'sales_client_phone'=>$this->Sales_Client_Phone,
                'sales_client_address'=>$this->Sales_Client_Address,

            ];











        return $data ;
    }

}
