return $html; | return $html; | ||||
} | } | ||||
], | ], | ||||
[ | |||||
'attribute' => 'note_emails', | |||||
'format' => 'raw', | |||||
'value' => function($user) { | |||||
if($user->note_emails) { | |||||
return nl2br($user->note_emails); | |||||
} | |||||
return ''; | |||||
} | |||||
], | |||||
[ | [ | ||||
'attribute' => 'producers', | 'attribute' => 'producers', | ||||
'label' => 'Profils', | 'label' => 'Profils', |
. '`user`.name_legal_person, ' | . '`user`.name_legal_person, ' | ||||
. '`user`.type, ' | . '`user`.type, ' | ||||
. '`user`.problem_receiving_emails, ' | . '`user`.problem_receiving_emails, ' | ||||
. '`user`.note_emails, ' | |||||
. '(SELECT COUNT(*) FROM `order` WHERE `user`.id = `order`.id_user) AS count_orders'); | . '(SELECT COUNT(*) FROM `order` WHERE `user`.id = `order`.id_user) AS count_orders'); | ||||
if($producer) { | if($producer) { |