Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

afoysal's avatar

Error in PHP and HTML code mix

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>'; })

0 likes
0 replies

Please or to participate in this conversation.