File "TopSellingV2Resource.php"

Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/app/Http/Resources/Admin/TopSellingV2Resource.php
File size: 500 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace App\Http\Resources\Admin;

use Illuminate\Http\Resources\Json\JsonResource;

class TopSellingV2Resource extends JsonResource
{
    public function toArray($request)
    {
        return [
            "product_name" => $this->product_name,
            "sku" => $this->sku,
            "vendor_name" => $this->vendor_name,
            "total_quantity" => number_format($this->total_quantity),
            "total_price" => "$" . number_format($this->total_price, 2),
        ];
    }
}