@php $max = 30; @endphp { render: function ( data, type, row, meta ) { if(!data) return null; if(data == 'F') return 'The transaction has been completed successfully (PAYMENT SUCCESSFUL).'; if(data == 'E') return 'The transaction was not completed because of an error (PAYMENT UNSUCCESSFUL).'; if(data == 'A') return 'The transaction is in progress (PAYMENT PENDING).'; if(data == 'R') return 'The transaction has been fully or partially refunded.'; if(data == 'X') return 'The transaction was cancelled by the merchant.'; if(data == 'M') return 'The customer has disputed the transaction with the issuing bank.'; if(data == 'MA') return 'Dispute awaiting response.'; if(data == 'MI') return 'Dispute in progress.'; if(data == 'ML') return 'A disputed transaction has been refunded (dispute lost).'; if(data == 'MW') return 'Dispute won.'; if(data == 'MS') return 'Suspected dispute.'; return ( data.length > {{ $max }} ? data.substring(0,{{ $max - 3 }}) + '...' : data ); }, data: '{{$column_name}}', name: '{{$column_name}}', className: 'align-middle' },