mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 06:37:32 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			880 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			880 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Ninja\Datatables;
 | |
| 
 | |
| use URL;
 | |
| 
 | |
| class BankAccountDatatable extends EntityDatatable
 | |
| {
 | |
|     public $entityType = ENTITY_BANK_ACCOUNT;
 | |
| 
 | |
|     public function columns()
 | |
|     {
 | |
|         return [
 | |
|             [
 | |
|                 'bank_name',
 | |
|                 function ($model) {
 | |
|                     return link_to("bank_accounts/{$model->public_id}/edit", $model->bank_name)->toHtml();
 | |
|                 },
 | |
|             ],
 | |
|             [
 | |
|                 'bank_library_id',
 | |
|                 function ($model) {
 | |
|                     return 'OFX';
 | |
|                 },
 | |
|             ],
 | |
|         ];
 | |
|     }
 | |
| 
 | |
|     public function actions()
 | |
|     {
 | |
|         return [
 | |
|             [
 | |
|                 uctrans('texts.edit_bank_account'),
 | |
|                 function ($model) {
 | |
|                     return URL::to("bank_accounts/{$model->public_id}/edit");
 | |
|                 },
 | |
|             ],
 | |
|         ];
 | |
|     }
 | |
| }
 |