mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
43 lines
926 B
PHP
43 lines
926 B
PHP
<?php namespace App\Http\Controllers;
|
|
|
|
use Utils;
|
|
use App\Ninja\Repositories\InvoiceRepository;
|
|
use App\Ninja\Datatables\RecurringInvoiceDatatable;
|
|
|
|
/**
|
|
* Class RecurringInvoiceController
|
|
*/
|
|
class RecurringInvoiceController extends BaseController
|
|
{
|
|
/**
|
|
* @var InvoiceRepository
|
|
*/
|
|
protected $invoiceRepo;
|
|
|
|
/**
|
|
* RecurringInvoiceController constructor.
|
|
* @param InvoiceRepository $invoiceRepo
|
|
*/
|
|
public function __construct(InvoiceRepository $invoiceRepo)
|
|
{
|
|
//parent::__construct();
|
|
|
|
$this->invoiceRepo = $invoiceRepo;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function index()
|
|
{
|
|
$data = [
|
|
'title' => trans('texts.recurring_invoices'),
|
|
'entityType' => ENTITY_RECURRING_INVOICE,
|
|
'datatable' => new RecurringInvoiceDatatable(),
|
|
];
|
|
|
|
return response()->view('list_wrapper', $data);
|
|
}
|
|
|
|
}
|