1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/Http/Controllers/RecurringInvoiceController.php

44 lines
923 B
PHP
Raw Normal View History

2017-01-30 20:40:43 +01:00
<?php
namespace App\Http\Controllers;
use App\Ninja\Datatables\RecurringInvoiceDatatable;
2017-01-30 20:40:43 +01:00
use App\Ninja\Repositories\InvoiceRepository;
/**
2017-01-30 20:40:43 +01:00
* Class RecurringInvoiceController.
*/
class RecurringInvoiceController extends BaseController
{
/**
* @var InvoiceRepository
*/
protected $invoiceRepo;
/**
* RecurringInvoiceController constructor.
2017-01-30 20:40:43 +01:00
*
* @param InvoiceRepository $invoiceRepo
*/
public function __construct(InvoiceRepository $invoiceRepo)
{
2016-03-02 14:36:42 +01:00
//parent::__construct();
$this->invoiceRepo = $invoiceRepo;
}
/**
* @return mixed
*/
public function index()
{
$data = [
'title' => trans('texts.recurring_invoices'),
'entityType' => ENTITY_RECURRING_INVOICE,
'datatable' => new RecurringInvoiceDatatable(),
];
2016-03-02 14:36:42 +01:00
return response()->view('list_wrapper', $data);
}
}