<?php
/**
* @version		3.0.0
* @package		JomLand TicketCenter
* @copyright	Copyright (C) 2010 JomLand.com. All rights reserved.
* @link 		www.jomland.com
* @license		GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
 
defined( '_JEXEC' ) or die( 'Restricted access' );

$cart = $this->cart;
$ticktes_total=0;
?>

<?php foreach ($cart as $k=>$item){?>
<div class="row-fluid clearfix" id="row_<?php echo $item->cart_line_id;?>" data-row-number="<?php echo $item->cart_line_id;?>">

    <div class="span7">
        <?php if($item->event_type==1){
            $cart_readonly=true;?>
            <span class="eventName"><?php echo $item->in_cart . ' '.JText::_('ARE_ATTENDING');?></span>
            <br />
        <?php }?>

        <span class="eventName"><?php echo $item->event_name;?></span>

        <br />
        <?php echo JHTML::_('date', $item->event_date, JText::_('DATE_FORMAT_LC3').' H:i',null);?>
        <br />
        <?php echo $item->venue_name;?>
    </div>

    <div class="span5 cart-price">

        <?php
        if($item->event_type==0){?>
            <?php echo JText::_('Tickets');?>&nbsp;-&nbsp;<?php echo $item->ticket_desc .' '.$item->dropdown;?> &nbsp;x&nbsp;
            <?php echo $this->params->get('currency_symbol');?><span id="sum_<?php echo $item->cart_line_id;?>"><?php echo number_format($item->ticket_price,2);?></span>
        <?php }?>

        <?php if (!isset($cart_readonly)){?>
            <a href="#" class="del_row" id="del_<?php echo $item->cart_line_id;?>"><img src="components/com_jlticketcenter/assets/trash.png" alt="<?php echo JText::_('Delete');?>" title="<?php echo JText::_('Delete');?>"  /></a>
        <?php }?>
    </div>
</div>

<?php
    $ticktes_total += ($item->quantity*$item->ticket_price);
    $this->ticktes_total += ($item->quantity*$item->ticket_price);
}?>
