$this->baseAmount, 'distance_amount' => $this->distanceAmount, 'total_bonus' => $this->totalBonus, 'total_penalty' => $this->totalPenalty, 'tip_amount' => $this->tipAmount, 'gross_amount' => $this->grossAmount, 'commission_rate' => $this->commissionRate, 'commission_amount' => $this->commissionAmount, 'net_amount' => $this->netAmount, 'currency' => $this->currency, 'breakdown' => $this->breakdown, 'bonuses' => $this->bonuses, 'penalties' => $this->penalties, ]; } /** * Get formatted amounts for display. */ public function toFormattedArray(): array { $symbol = config('restaurant-delivery.pricing.currency_symbol', '৳'); return [ 'base_amount' => $symbol.number_format($this->baseAmount, 2), 'distance_amount' => $symbol.number_format($this->distanceAmount, 2), 'total_bonus' => $symbol.number_format($this->totalBonus, 2), 'total_penalty' => $symbol.number_format($this->totalPenalty, 2), 'tip_amount' => $symbol.number_format($this->tipAmount, 2), 'gross_amount' => $symbol.number_format($this->grossAmount, 2), 'commission_amount' => $symbol.number_format($this->commissionAmount, 2), 'net_amount' => $symbol.number_format($this->netAmount, 2), 'commission_rate' => $this->commissionRate.'%', ]; } }