<?php use app\libraries\CommonHelper;?>
<table style="font-size:8pt;border-bottom: 1px solid <?php echo $THEME_ITEM_COLOR_BORDER_BOTTOM; ?>;">
    <!-- tr as padding -->
    <tr>
        <td style="line-height: 45%;"></td>
    </tr>
    <tr>
        <td><span>學生 : <?php echo $RECIPIENT_NAME; ?></span></td>
    </tr>
    <tr>
        <td style="width: 40%;"><?php echo $ITEM; ?>
            <?php echo $ITEM_TIMESLOT; ?>
        </td>
        <td style="width:15%; line-height: <?php echo $HEIGHT_WITH_COURSE_COUNT; ?>%;" align="center"><?php echo $PRICE; ?></td>
        <td style="width:15%; line-height: <?php echo $HEIGHT_WITH_COURSE_COUNT; ?>%;" align="center"><?php echo $QTY; ?></td>
        <td style="width:15%; line-height: <?php echo $HEIGHT_WITH_COURSE_COUNT; ?>%;" align="center"><?php echo $DISCOUNT; ?></td>
        <td style="width:15%; line-height: <?php echo $HEIGHT_WITH_COURSE_COUNT; ?>%;" align="center"><?php echo $AMOUNT; ?></td>
    </tr>
	<?php if(!empty($EXTRA)):?>
		<?php foreach($EXTRA as $item):?>
			<tr>
				<td style="width: 40%;"><?php echo $item['name']; ?></td>
				<td style="width:15%; line-height: <?php echo $HEIGHT_WITH_COURSE_COUNT; ?>%;" align="center">--</td>
				<td style="width:15%; line-height: <?php echo $HEIGHT_WITH_COURSE_COUNT; ?>%;" align="center">--</td>
				<td style="width:15%; line-height: <?php echo $HEIGHT_WITH_COURSE_COUNT; ?>%;" align="center">--</td>
				<td style="width:15%; line-height: <?php echo $HEIGHT_WITH_COURSE_COUNT; ?>%;" align="center"><?php echo CommonHelper::money($item['amount']); ?></td>
			</tr>
		<?php endforeach;?>
	<?php endif;?>
    <!--end data row-->
    <!-- tr as padding -->
    <tr>
        <td style="line-height: 45%;"></td>
    </tr>
</table>
