28 lines
		
	
	
		
			896 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			896 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\View\Components\Documents\Form;
 | |
| 
 | |
| use App\Abstracts\View\Components\Documents\Form as Component;
 | |
| 
 | |
| class RecurringMetadata extends Component
 | |
| {
 | |
|     /**
 | |
|      * Get the view / contents that represent the component.
 | |
|      *
 | |
|      * @return \Illuminate\Contracts\View\View|string
 | |
|      */
 | |
|     public function render()
 | |
|     {
 | |
|         $payment_terms = [
 | |
|             '0'  => trans('settings.invoice.due_receipt'),
 | |
|             '15' => trans('settings.invoice.due_days', ['days' => 15]),
 | |
|             '30' => trans('settings.invoice.due_days', ['days' => 30]),
 | |
|             '45' => trans('settings.invoice.due_days', ['days' => 45]),
 | |
|             '60' => trans('settings.invoice.due_days', ['days' => 60]),
 | |
|             '90' => trans('settings.invoice.due_days', ['days' => 90]),
 | |
|         ];
 | |
| 
 | |
|         return view('components.documents.form.recurring_metadata', compact('payment_terms'));
 | |
|     }
 | |
| }
 |