1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00
invoiceninja/app/Ninja/Intents/DownloadInvoiceIntent.php
2017-01-30 21:40:43 +02:00

20 lines
477 B
PHP

<?php
namespace App\Ninja\Intents;
use App\Libraries\Skype\SkypeResponse;
use App\Models\Invoice;
class DownloadInvoiceIntent extends InvoiceIntent
{
public function process()
{
$invoice = $this->invoice();
$message = trans('texts.' . $invoice->getEntityType()) . ' ' . $invoice->invoice_number;
$message = link_to('/download/' . $invoice->invitations[0]->invitation_key, $message);
return SkypeResponse::message($message);
}
}