I need the below text modified. It was originally written in Yii framework / PHP. This text outputs a PDF file, and specifically I need these changes:
1. Below where it has $model->in_note; & $model->out_note; I want it to display the font as hightlighted markup, example of highlighted markup in html is here: [login to view URL]
2. Below where it has ($model->in_time) & ($model->out_time), I would like the font output of this to be bold.
======================================
[
'label'=>t("In"),
'format'=>'raw',
'value'=>function($model){
$address = $model->in_address?$model->in_address: Html::tag('em',t("TEXT GOES HERE"));
$address = str_replace(', USA', '', $address);
if($model->in_note)
$address.='<br/>'.$model->in_note;
return Html::tag('div',app()->formatter->asDateTime($model->in_time).'<br/>'.$address,['style'=>'font-size:10pt;']);
}
],
[
'label'=>t("Out"),
'format'=>'raw',
'footerOptions'=>['align'=>'right'],
'value'=>function($model){
$address = $model->out_address?$model->out_address: Html::tag('em',t("TEXT GOES HERE"));
$address = str_replace(', USA', '', $address);
if($model->out_note)
$address.='<br/>'.$model->out_note;
return Html::tag('div',$model->out_time?app()->formatter->asDateTime($model->out_time).'<br/>'.$address:$address,['style'=>'font-size:10pt;']);
},