1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-23 01:41:34 +02:00
invoiceninja/app/Ninja/Presenters/VendorPresenter.php

17 lines
381 B
PHP
Raw Normal View History

2016-01-07 12:04:01 +01:00
<?php namespace App\Ninja\Presenters;
use Utils;
use Laracasts\Presenter\Presenter;
2016-01-07 16:21:13 +01:00
// vendor
2016-01-07 12:04:01 +01:00
class VendorPresenter extends Presenter {
public function country()
{
return $this->entity->country ? $this->entity->country->name : '';
}
2016-02-24 22:54:43 +01:00
public function link()
{
return link_to('/vendors/' . $this->entity->public_id, $this->entity->name);
}
2016-01-07 12:04:01 +01:00
}