mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 20:18:33 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			830 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			830 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php namespace App\Http\Controllers;
 | 
						|
 | 
						|
use Utils;
 | 
						|
use App\Ninja\Repositories\InvoiceRepository;
 | 
						|
 | 
						|
class RecurringInvoiceController extends BaseController
 | 
						|
{
 | 
						|
    protected $invoiceRepo;
 | 
						|
 | 
						|
    public function __construct(InvoiceRepository $invoiceRepo)
 | 
						|
    {
 | 
						|
        parent::__construct();
 | 
						|
 | 
						|
        $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'
 | 
						|
            ])
 | 
						|
        ];
 | 
						|
        
 | 
						|
        return response()->view('list', $data);
 | 
						|
    }
 | 
						|
 | 
						|
} |