2015-10-29 18:21:00 +01:00
|
|
|
<?php namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
use Utils;
|
|
|
|
use App\Ninja\Repositories\InvoiceRepository;
|
|
|
|
|
|
|
|
class RecurringInvoiceController extends BaseController
|
|
|
|
{
|
|
|
|
protected $invoiceRepo;
|
|
|
|
|
|
|
|
public function __construct(InvoiceRepository $invoiceRepo)
|
|
|
|
{
|
2016-03-02 14:36:42 +01:00
|
|
|
//parent::__construct();
|
2015-10-29 18:21:00 +01:00
|
|
|
|
|
|
|
$this->invoiceRepo = $invoiceRepo;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function index()
|
|
|
|
{
|
|
|
|
$data = [
|
|
|
|
'title' => trans('texts.recurring_invoices'),
|
|
|
|
'entityType' => ENTITY_RECURRING_INVOICE,
|
|
|
|
'columns' => Utils::trans([
|
|
|
|
'checkbox',
|
|
|
|
'frequency',
|
|
|
|
'client',
|
|
|
|
'start_date',
|
|
|
|
'end_date',
|
|
|
|
'invoice_total',
|
|
|
|
'action'
|
|
|
|
])
|
|
|
|
];
|
2016-03-02 14:36:42 +01:00
|
|
|
|
2015-10-29 18:21:00 +01:00
|
|
|
return response()->view('list', $data);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|