?> </th> <th><?php echo I18n::t('Unit price'); ?> </th> <th><?php echo I18n::t('Quantity'); ?> </th> </tr> </thead> <tbody style="background:#fff"> <?php $total_value = 0; foreach (PurchaseOrderDetail::find()->where(['purchase_order_id' => $purchase_order->id])->all() as $item) { ?> <tr> <td><?php echo $item->product_code; ?> </td> <td><?php echo $item->product_name; ?> </td> <td><?php echo I18n::currency($item->unit_price); ?> </td> <td><?php