1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 23:22:52 +01:00
invoiceninja/app/Ninja/Presenters/VendorPresenter.php
2016-02-24 23:54:43 +02:00

17 lines
381 B
PHP

<?php namespace App\Ninja\Presenters;
use Utils;
use Laracasts\Presenter\Presenter;
// vendor
class VendorPresenter extends Presenter {
public function country()
{
return $this->entity->country ? $this->entity->country->name : '';
}
public function link()
{
return link_to('/vendors/' . $this->entity->public_id, $this->entity->name);
}
}