<?php
    echo "Versão 1.1";
    echo " - ";
    echo  $_SESSION['customercode'];  
    echo " - ";
    echo  $_SESSION['cnpj'];  
    echo " - ";
    echo  $_SESSION['ce'];  
    echo " ";
    ?>


<div class="well well-personalizado">

    
    
    <div class="page-header">
        <h1>Resposta da Chamada de Encalhe</h1>
    </div>

    <?php
    if (isset($_SESSION['msg'])):
        echo $_SESSION['msg'];
        unset($_SESSION['msg']);
    endif;
    if (isset($_SESSION['msgcad'])):
        echo $_SESSION['msgcad'];
        unset($_SESSION['msgcad']);
    endif;

    ?>

    <div class="pull-right">
        <!--<a href="<?php echo URL; ?>controle-carousel/cadastrar"><button type="button" class="btn btn-sm btn-success">Cadastrar</button></a>-->
    </div>

    <?php
    if (!empty($this->Dados)):
        ?>
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>ID</th>
                    
                    <th>ID Produto</th>
                    <th>Coleção</th>
                    <th>ID Edição</th>
                    <th>Edição-sistema Analista</th>
                    <th>Codigo Produto</th>
                    <th>ID Cliente - sistema Analista</th>
                    <th>Cnpj Cliente</th>
                    <th>Nº da CE</th>
                    <th>Id Usuário</th>
                    <th>Devolução</th>
                    <th>Venda</th>
                    <th>Valor Calculado</th>
                    <th>Desconto Calculado</th>
                    <th>Pedido</th>
                    <th>Dat Pedido</th>
                    <th>Nota Ponto</th>
                   
                    
                   <!-- <th>Titulo</th> -->
                   <!-- <th>Imagem</th> -->
                   <!-- <th>Ações</th> -->
                </tr>
            </thead>
            <tbody>
                <?php
                foreach ($this->Dados as $carousel) :
                    extract($carousel);
                    ?>               
                    <tr>
                        <td><?php echo $id; ?></td>
                        
                        <td><?php echo $id_product; ?></td>
                          <td><?php echo $id_collection; ?></td>
                            <td><?php echo $id_edition; ?></td>
                              <td><?php echo $edition_number; ?></td>
                                <td><?php echo $id_prod_Planeta; ?></td>
                                  <td><?php echo $customercode; ?></td>
                                    <td><?php echo $cnpj; ?></td>
                                      <td><?php echo $cde_number; ?></td>
                                        <td><?php echo $uid; ?></td>
                                          <td><?php echo $return_quantity; ?></td>
                                            <td><?php echo $sales_quantity; ?></td>
                                              <td><?php echo $calculated_value; ?></td>
                                                <td><?php echo $discount_calculated_value; ?></td>
                                                  <td><?php echo $id_order; ?></td>
                                                    <td><?php echo $order_date; ?></td>
                                                      <td><?php echo $nota_ponto; ?></td>
                                
                        
                        
                       <!-- <td><?php echo $titulo_carousel; ?></td> -->
                        <!--<td>--> <?php 
                        $imagem_carousel = URL . "assets/imagens/carousel/$id/$foto";
                       //  echo "<img src='$imagem_carousel' height='45' width='180' alt='$titulo_carousel'>"; 
                        
                        ?><!--</td>-->
                        <td>
                            <!--<a href="<?php echo URL; ?>controle-carousel/visualizar/<?php echo $id; ?>"><button type="button" class="btn btn-primary">Visualizar</button></a>-->

                            <!--<a href="<?php echo URL; ?>controle-carousel/editar/<?php echo $id; ?>"><button type="button" class="btn btn-warning">Alterar</button></a>-->

                            <!--<a href="<?php echo URL; ?>controle-carousel/apagar/<?php echo $id; ?>"><button type="button" class="btn btn-danger">Apagar</button></a>-->
                        </td>
                    </tr>

                    <?php
                endforeach;
                ?>
            </tbody>
        </table>
        <?php
    else:
        echo "<div class='alert alert-danger'>Nenhuma Resposta de Chamada de Encalhe encontrada!</div>";
    endif;
    //var_dump($this->Dados);
    ?>
</div>

