<h3>
  <?php echo htmlspecialchars(t('Vehicle Owner'),ENT_QUOTES,'UTF-8'); ?>
  <?php if(user()->checkAccess('plate_auth_view_ids')) { ?>
    <?php echo htmlspecialchars('#',ENT_QUOTES,'UTF-8'); ?>
    <?php echo htmlspecialchars($user->ID  ,ENT_QUOTES,'UTF-8'); ?>
  <?php } ?>
  <?php if(user()->checkAccess('vehicle_owner_management') && user()->checkAccess('vehicle_owner_update')) { ?>
    <a <?php echo MtHaml\Runtime::renderAttributes(array(array('href', (url('vehicleOwner/update', array('id'=>$user->ID))))), 'html5', 'UTF-8'); ?>>
      <i class="icon-pencil"></i>
    </a>
  <?php } ?>
</h3>
<table class="table table-striped table-condensed">
  <thead>
    <tr>
      <th></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>
        <?php echo htmlspecialchars($user->getAttributeLabel('Nome'),ENT_QUOTES,'UTF-8'); ?>
      </td>
      <td>
        <?php echo htmlspecialchars($user->Nome,ENT_QUOTES,'UTF-8'); ?>
      </td>
    </tr>
    <tr>
      <td>
        <?php echo htmlspecialchars($user->getAttributeLabel('Cognome'),ENT_QUOTES,'UTF-8'); ?>
      </td>
      <td>
        <?php echo htmlspecialchars($user->Cognome,ENT_QUOTES,'UTF-8'); ?>
      </td>
    </tr>
    <?php if(!$isBlack) { ?>
      <tr>
        <td>
          <?php echo htmlspecialchars($user->getAttributeLabel('email'),ENT_QUOTES,'UTF-8'); ?>
        </td>
        <td>
          <?php echo htmlspecialchars($user->email,ENT_QUOTES,'UTF-8'); ?>
        </td>
      </tr>
      <tr>
        <td>
          <?php echo htmlspecialchars($user->getAttributeLabel('phone'),ENT_QUOTES,'UTF-8'); ?>
        </td>
        <td>
          <?php echo htmlspecialchars($user->phone,ENT_QUOTES,'UTF-8'); ?>
        </td>
      </tr>
      <tr>
        <td>
          <?php echo htmlspecialchars($user->getAttributeLabel('personal_id_code'),ENT_QUOTES,'UTF-8'); ?>
        </td>
        <td>
          <?php echo htmlspecialchars($user->personal_id_code,ENT_QUOTES,'UTF-8'); ?>
        </td>
      </tr>
      <tr>
        <td>
          <?php echo htmlspecialchars($user->getAttributeLabel('address'),ENT_QUOTES,'UTF-8'); ?>
        </td>
        <td>
          <?php echo htmlspecialchars($user->address,ENT_QUOTES,'UTF-8'); ?>
        </td>
      </tr>
      <tr>
        <td>
          <?php echo htmlspecialchars($user->getAttributeLabel('city'),ENT_QUOTES,'UTF-8'); ?>
        </td>
        <td>
          <?php echo htmlspecialchars($user->city,ENT_QUOTES,'UTF-8'); ?>
        </td>
      </tr>
      <tr>
        <td>
          <?php echo htmlspecialchars($user->getAttributeLabel('Note'),ENT_QUOTES,'UTF-8'); ?>
        </td>
        <td>
          <?php echo htmlspecialchars($user->Note,ENT_QUOTES,'UTF-8'); ?>
        </td>
      </tr>
    <?php } ?>
  </tbody>
</table>
