public function getGrandTotalAttribute()
    {
        if (!$this->deliveryOption) return $this->total;

        return (float) round($this->total + $this->deliveryOption->price, 2);
    }
public function getGrandTotalAttribute()
    {
        if (!$this->deliveryOption) return $this->total;

        return (float) round($this->total + $this->deliveryOption->price, 2);
    }
public function getGrandTotalAttribute ( ) { if ( ! $ this -> deliveryOption ) return $ this -> total ; return ( float ) round ( $ this -> total + $ this -> deliveryOption -> price , 2 ) ; }
Calculate grand total in respect to quantity and delivery.

@return float
Calculate grand total in respect to quantity and delivery .