<div class="text-center">
    <ul class="breadcrumb">
        <li><span class="text-primary">VOCÊ ESTÁ EM : </span></li>
        <li>FINALIZAR PEDIDO</li>
    </ul>                
</div> 
<?php if (($this->cart->contents()) == null) { ?>
    <div class="animated fadeIn" style="padding-bottom: 6%;">
        <div class="panel-heading carrinho-painel"></div>
        <table class="table table-hover tabela">
            <tr>
                <td></td>
                <td><p style="text-align: center; font-weight: 600;">Você ainda não adicionou nenhum item no seu carrinho.</p></td> 
            </tr>   
        </table>
    <?php } else { ?>              
    </div>
    <div class="container">
        <div class="row">
             <div id="carrinho3" class="col-sm-12" style="padding-bottom: -15%;"> 

        <table class="table">
            <tr>
                <th><p style="font-size: 20pt; font-family: 'Raleway';">FINALIZAR PEDIDO</p></th>
            </tr>
        </table>
    </div>
            <div id="carrinho2" class="col-sm-5 col-md-5" style="padding-bottom: -15%; margin-left: -1%;"> 
                <div class="col-sm-7">    
                    <ul class="list-inline"> 
                        <li>
                            <p style="font-size: 20pt; color: black;font-family: 'Raleway';">FINALIZAR PEDIDO</p>
                        </li>
                    </ul>    
                </div>
                <div class="col-sm-8"  style="text-align: center;">
                    <ul class="list-inline"> 
                        <li>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="row">      
            <div class="col-sm-12">
                <div class="panel panel-primary animated fadeIn">
                    <div class="panel-heading carrinho-painel"></div>
                    <!-- TABELA -->
                    <div class="table-responsive">
                        <table class="table table-hover tabela tabela-pagamento">
                            <thead>
                                <tr>
                                    <th>Disciplinas</th>
                                    <th>Carga Horária</th>
                                    <th>Valor</th>
                                    <th></th>
                                </tr>  
                            </thead>
                            <tbody class="tabela">
                                <?php foreach ($this->cart->contents() as $items): ?>
                                    <tr>	
                                        <td style="width: 40%;"><p><?php echo $items['name']; ?></p></td> 
                                        <td><p><?php echo $items['cargahoraria']; ?> Horas</p></td> 
                                        <td><p>R$ <?php echo number_format($items['price'], 2, ',', '.') ?></p></td>
                                    <?php endforeach; ?>
                                </tr> 
                              <tr>
                                    <td colspan="2">&nbsp;</td>
                                    <td class="left"><strong>SUBTOTAL</strong><br><strong>DESCONTOS</strong><br><strong>TOTAL A PAGAR</strong></td>
                                    <td class="right">R$ <?php echo number_format($this->cart->total(), 2, ',', '.'); ?><br> R$ &nbsp;&nbsp;&nbsp;&nbsp;0,00<br>R$ <?php echo number_format($this->cart->total(), 2, ',', '.'); ?></td>
                                </tr>
                       
                        </tbody>   
                        </table>
                    </div>
                    <div class="tabela-pagamento2">
                    <div class="col-md-4 col-sm-4">
                        <div class="form-group">
                            <label for="parcelamento">Disciplinas</label>
                            <?php foreach ($this->cart->contents() as $items): ?>
                                <p><?php echo $items['name']; ?></p>
                            <?php endforeach; ?>    
                        </div>
                    </div>
                    <div class="col-md-1 col-sm-2">
                        <div class="form-group">
                            <label for="parcelamento">Carga Horária</label>
                                <?php foreach ($this->cart->contents() as $items): ?>   
                                <p><?php echo $items['name']. ' - ' .$items['cargahoraria']; ?> Horas</p>
                                <?php endforeach; ?>
                        </div>
                    </div>
                    <div class="col-md-1 col-sm-2">
                        <div class="form-group">
                            <label for="parcelamento">Valor</label>
                                <?php foreach ($this->cart->contents() as $items): ?>   
                                <p><?php echo  $items['name']. ' - R$ '  .number_format($items['price'], 2, ',', '.') ?></p>
                                <?php endforeach; ?>
                        </div>
                    </div>
                    
                    <div class="col-md-1 col-sm-3">
                        <div class="form-group">
                            <label for="parcelamento">SUBTOTAL</label>
                                <p>R$ <?php echo number_format($this->cart->total(), 2, ',', '.'); ?></p>
                        </div>
                    </div>
                    <div class="col-md-2 col-sm-2">
                        <div class="form-group">
                            <label for="parcelamento">DESCONTOS</label>
                                <p>R$ 0,00</p>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-5">
                        <div class="form-group">
                         <label for="parcelamento">TOTAL</label>
                              <p>R$ <?php echo number_format($this->cart->total(), 2, ',', '.'); ?></p>
                        </div>
                    </div>
                   
                <?php } ?> 
            </div>
</div>