afoysal
2 months ago
114
0
Laravel

Error in PHP and HTML code mix

Posted 2 months ago by afoysal

I am using (https://yajrabox.com/docs/laravel-datatables/master) datatable. I am using in below code to add a coloumn. But I am getting only consignee text.

->addColumn('action', function($row){ return '<div title='.$row->assignee ? "Consignee" : "Customer".' class='.$row->assignee ? "consignee" : "customer".'>C</div>'; })

Please sign in or create an account to participate in this conversation.