mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:27:31 -05:00 
			
		
		
		
	- Removed unused uses - Type hinting for method parameters - Removed commented code - Introduced comments for classes and methods - Short array syntax
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php namespace App\Http\Controllers;
 | 
						|
 | 
						|
use Utils;
 | 
						|
use App\Ninja\Repositories\InvoiceRepository;
 | 
						|
 | 
						|
/**
 | 
						|
 * 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,
 | 
						|
            'columns' => Utils::trans([
 | 
						|
                'checkbox',
 | 
						|
                'frequency',
 | 
						|
                'client',
 | 
						|
                'start_date',
 | 
						|
                'end_date',
 | 
						|
                'invoice_total',
 | 
						|
                'action'
 | 
						|
            ])
 | 
						|
        ];
 | 
						|
 | 
						|
        return response()->view('list', $data);
 | 
						|
    }
 | 
						|
 | 
						|
} |