16 lines
No EOL
349 B
PHP
16 lines
No EOL
349 B
PHP
<?php namespace App\Ninja\Presenters;
|
|
|
|
use Utils;
|
|
use Laracasts\Presenter\Presenter;
|
|
|
|
class InvoicePresenter extends Presenter {
|
|
|
|
public function balance_due()
|
|
{
|
|
$amount = $this->entity->getRequestedAmount();
|
|
$currencyId = $this->entity->client->currency_id;
|
|
|
|
return Utils::formatMoney($amount, $currencyId);
|
|
}
|
|
|
|
} |