<?php echo $header; ?>
<?php if ($success) { ?>
<div class="success"><?php echo $success; ?></div>
<?php } ?>
<?php if ($error_warning) { ?>
<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>
<?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <h1><?php echo $heading_title; ?></h1>
  <h2><?php echo $text_address_book; ?></h2>
  <?php foreach ($addresses as $result) { ?>
  <div class="content">
    <table style="width: 100%;">
      <tr>
        <td><?php echo $result['address']; ?></td>
        
        <td style="text-align: right;">
          <?php if ((!$this->customer->getApproved())&&($this->config->get('fields_register_brazil_enable_endereco_revisao'))){ echo $text_endereco_aguardando; ?>
          <?php }else{ ?>
          <a href="<?php echo $result['update']; ?>" class="button"><?php echo $button_edit; ?></a> 
          <?php  } ?>
            

        
        &nbsp; 
        <?php if (!$this->config->get('fields_register_brazil_enable_endereco_padrao')){ ?>
          <a href="<?php echo $result['delete']; ?>" class="button"><?php echo $button_delete; ?></a>
        <?php } ?>
        </td>
      </tr>
    </table>
  </div>
  <?php } ?>
  
  
  <div class="buttons">
    <div class="left"><a href="<?php echo $back; ?>" class="button"><?php echo $button_back; ?></a></div>
    <?php if (!$this->config->get('fields_register_brazil_enable_endereco_padrao')){ ?>
    <div class="right"><a href="<?php echo $insert; ?>" class="button"><?php echo $button_new_address; ?></a></div>
    <?php } ?>
  </div>
  
  <?php echo $content_bottom; ?></div>
<?php echo $footer; ?>
