| 1 |
<?php |
| 2 |
namespace SureCart\Models; |
| 3 |
|
| 4 |
use SureCart\Support\Currency; |
| 5 |
|
| 6 |
/** |
| 7 |
* ServiceFee model |
| 8 |
*/ |
| 9 |
class ServiceFee extends Model { |
| 10 |
/** |
| 11 |
* Object name |
| 12 |
* |
| 13 |
* @var string |
| 14 |
*/ |
| 15 |
protected $object_name = 'service_fee'; |
| 16 |
|
| 17 |
/** |
| 18 |
* Get the base display amount. |
| 19 |
* |
| 20 |
* @return string |
| 21 |
*/ |
| 22 |
public function getDisplayAmountAttribute() { |
| 23 |
return Currency::format( $this->amount, $this->currency ); |
| 24 |
} |
| 25 |
} |
| 26 |
|