<?php

use Zend\Session\Container;

$sessionSightseeingContainer = new Container('addSightseeingData');
$sessionSigntseeingId = isset($sessionSightseeingContainer->s_id) ? $sessionSightseeingContainer->s_id : '';
?>
<?php if (!empty($sessionSigntseeingId)) { ?>

    <li class="<?php if ($tab == 'general-information') echo "active"; ?>">
        <a href="<?php echo $this->url('sightseeing', array('action' => 'edit-general-information'), ['query' => array('id' => $sessionSigntseeingId)]); ?>">
    <?php echo $this->translate('General Information'); ?>
        </a>
    </li>
    
<!--    <li class="<?php if ($tab == 'rate') echo "active"; ?>">
        <a href="<?php echo $this->url('sightseeing', array('action' => 'edit-rate'), ['query' => array('id' => $sessionSigntseeingId)]); ?>">
    <?php echo $this->translate('Rate'); ?>
        </a>
    </li>-->
    
    <li class="<?php if ($tab == 'rate') echo "active"; ?>">
        <a href="<?php echo $this->url('sightseeing', array('action' => 'rate')); ?>">
    <?php echo $this->translate('Rate'); ?>
        </a>
    </li>
    
    <li class="<?php if ($tab == 'meta-tag') echo "active"; ?>">
        <a href="<?php echo $this->url('sightseeing', array('action' => 'meta-tag'), ['query' => array('id' => $sessionSigntseeingId)]); ?>">
    <?php echo $this->translate('Meta Tag'); ?>
        </a>
    </li>
    
    <li class="<?php if ($tab == 'term-condition') echo "active"; ?>">
        <a href="<?php echo $this->url('sightseeing', array('action' => 'term-condition'), ['query' => array('id' => $sessionSigntseeingId)]); ?>">
    <?php echo $this->translate('Terms & Conditions'); ?>
        </a>
    </li>
    
    <li class="<?php if($tab=='upload-images') echo "active"; ?>">
        <a href="<?php echo $this->url('sightseeing', array('action' => 'upload-images'),['query' => array('id' => $sessionSigntseeingId)]); ?>">
            <?php echo $this->translate('Upload Images'); ?>
        </a>
    </li>

<?php } else { ?>


    <li class="<?php if ($tab == 'general-information') echo "active"; ?>">
        <a href="<?php echo $this->url('sightseeing', array('action' => 'general-information')); ?>">
    <?php echo $this->translate('General Information'); ?>
        </a>
    </li>


    <li class="<?php if ($tab == 'rate') echo "active"; ?>">
        <a href="<?php echo $this->url('sightseeing', array('action' => 'rate')); ?>">
    <?php echo $this->translate('Rate'); ?>
        </a>
    </li>
    
    <li class="<?php if ($tab == 'meta-tag') echo "active"; ?>">
        <a href="<?php echo $this->url('sightseeing', array('action' => 'meta-tag')); ?>">
    <?php echo $this->translate('Meta Tag'); ?>
        </a>
    </li>
    
    <li class="<?php if ($tab == 'term-condition') echo "active"; ?>">
        <a href="<?php echo $this->url('sightseeing', array('action' => 'term-condition')); ?>">
    <?php echo $this->translate('Terms & Conditions'); ?>
        </a>
    </li>
    
<?php } ?>

<!--<li class="<?php $tab = 'contact';
if ($tab == 'contact')
    echo "active";
?>"><a href="<?php echo $this->url() . '/contact'; //. $id;   ?>">Contact</a></li>-->
<!--<li class="<?php if ($tab == 'rate') echo "active"; ?>"><a href="<?php echo $this->url() . '/rate'; //. $id;   ?>">Rate</a></li>
    <li class="<?php if ($tab == 'meta-tag') echo "active"; ?>"><a href="<?php echo $this->url() . '/meta-tag'; //. $id;   ?>">Meta tag</a></li>-->
<!--<li class="<?php if ($tab == 'allocation') echo "active"; ?>"><a href="<?php echo $this->url() . '/allocation'; //. $id;   ?>">Allocation</a></li>-->
<!--<li class="<?php if ($tab == 'term-condition') echo "active"; ?>"><a href="<?php echo $this->url() . '/term-condition'; //. $id;   ?>">Terms & Conditions</a></li>-->

