<?php
$counter = 0;
foreach ($related_idea as $related_idea_info) {
    ?>
    <span class="col-sm-12 form-group text-left" >
        <a href="<?php echo base_url() ?>support-idea/<?php echo $related_idea_info->support_id; ?>" >
            <i class="fa fa-arrow-circle-o-right"> </i> 
            <?php echo $related_idea_info->support_title ?>
        </a>
    </span> 

    <?php
    $counter ++;
}
?>

<?php if ($total_idea->total_idea > $counter) { ?>
    <a href="javascript:void(0)" onclick="more_view_idea('<?php echo base_url(); ?>support-more-idea/', '<?php echo $counter; ?>')" > More...</a>
<?php }
?>