public function getCurrentStockAttribute()
    {
        $stock = $this->getTotalStock();

        if ($this->hasMetric()) {
            return sprintf('%s %s', $stock, $this->getMetricSymbol());
        }

        return $stock;
    }
public function getCurrentStockAttribute()
    {
        $stock = $this->getTotalStock();

        if ($this->hasMetric()) {
            return sprintf('%s %s', $stock, $this->getMetricSymbol());
        }

        return $stock;
    }
public function getCurrentStockAttribute ( ) { $ stock = $ this -> getTotalStock ( ) ; if ( $ this -> hasMetric ( ) ) { return sprintf ( '%s %s' , $ stock , $ this -> getMetricSymbol ( ) ) ; } return $ stock ; }
Mutator for showing the total current stock of the inventory item.

@return int|string
Mutator for showing the total current stock of the inventory item .