2015-10-29 18:21:00 +01:00
|
|
|
<?php namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
use Utils;
|
|
|
|
use App\Ninja\Repositories\InvoiceRepository;
|
2016-11-24 10:22:37 +01:00
|
|
|
use App\Ninja\Datatables\RecurringInvoiceDatatable;
|
2015-10-29 18:21:00 +01:00
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* Class RecurringInvoiceController
|
|
|
|
*/
|
2015-10-29 18:21:00 +01:00
|
|
|
class RecurringInvoiceController extends BaseController
|
|
|
|
{
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @var InvoiceRepository
|
|
|
|
*/
|
2015-10-29 18:21:00 +01:00
|
|
|
protected $invoiceRepo;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* RecurringInvoiceController constructor.
|
|
|
|
* @param InvoiceRepository $invoiceRepo
|
|
|
|
*/
|
2015-10-29 18:21:00 +01:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2015-10-29 18:21:00 +01:00
|
|
|
public function index()
|
|
|
|
{
|
|
|
|
$data = [
|
|
|
|
'title' => trans('texts.recurring_invoices'),
|
|
|
|
'entityType' => ENTITY_RECURRING_INVOICE,
|
2016-11-24 10:22:37 +01:00
|
|
|
'datatable' => new RecurringInvoiceDatatable(),
|
2015-10-29 18:21:00 +01:00
|
|
|
];
|
2016-03-02 14:36:42 +01:00
|
|
|
|
2016-11-24 10:22:37 +01:00
|
|
|
return response()->view('list_wrapper', $data);
|
2015-10-29 18:21:00 +01:00
|
|
|
}
|
|
|
|
|
2016-11-24 10:22:37 +01:00
|
|
|
}
|