<?php
// rupes_recibos.php
include 'cabecalho.php';
?>
<h2><i class="fas fa-receipt"></i> Rupes e Recibos</h2>
<form method="post">
  <label>Nome:</label>
  <input type="text" name="nome" required>
  <label>Referência:</label>
  <input type="text" name="referencia" required>
  <label>Valor:</label>
  <input type="number" name="valor" required>
  <button type="submit">Gerar Recibo</button>
</form>
<?php
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['nome'])) {
  echo "<p>Recibo gerado para {$_POST['nome']} - Ref: {$_POST['referencia']} - Valor: {$_POST['valor']} Kz</p>";
}
include 'rodape.php';
?>
