<?php

/**
* @copyright	Copyright (C) 2009 - 2012 Ready Bytes Software Labs Pvt. Ltd. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* @package 		PAYCART
* @subpackage	Front-end
* @contact		team@readybytes.in
*/

// no direct access
defined( '_JEXEC' ) OR die( 'Restricted access' );

$counter = 1;
// before the current task, all tak will be completed so "text-succes" class and cursor pointer class
// and onlick event is allowed
$class = 'pc-checkout-cursor-pointer text-success';
$click_event = true;
?>
<div class="lead text-center pc-grid-12 ">
	<hr class="clearfix pc-grid-12" />
	<?php foreach($available_steps as $name => $step ):?>
			
			<?php if($name == $active_task):?>
				<?php // for current task, no class?>
				<?php $class = "";?>
				<?php // with and after current task no click event should be fired ?>
				<?php $click_event = false;?>
			<?php endif;?>		
			
			<div class="pc-grid-3 pc-checkout-step <?php echo $step->class." ".$class; ?>" <?php echo $click_event ? 'onClick="'.$step->onclick.'"' : '';?>>
				<p class="fa-stack  ">
			    	<i class="fa fa-circle fa-stack-2x"></i>
			    	<i class="fa <?php echo $step->icon; ?> fa-stack-1x fa-inverse"></i>
			    </p>
			    
		    	<p class="">
		    		<?php echo $counter++; ?>
		    		<span class='hidden-phone'> <?php echo JText::_($step->title)?></span>
		    	</p>
	    	</div>
    	
    		<?php // after the cureent task all tak will be muted , so add muted class?>
	    	<?php if($name == $active_task):?>
				<?php $class = "muted";?>
			<?php endif;?>		
	<?php endforeach;?>
	<hr class="clearfix pc-grid-12" />
</div>
<?php

