<?php

$status = $_GET['status'] ?? '';
$message = $_GET['message'] ?? '';
$successMessage = htmlspecialchars(urldecode($message !== '' ? $message : 'Ação executada com sucesso!'));
$errorMessage = htmlspecialchars(urldecode($message));
?>
<div class="modal fade" id="successModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-md">
    <div class="modal-content bg-success">
      <div class="modal-body">
        <div class="row align-items-center">

          <div class="col-10">
            <h3 class="text-white">Ação executada com sucesso!</h3>
          </div>

          <div class="col text-right">
            <i class="mdi mdi-close-circle text-white" data-bs-dismiss="modal" aria-label="Close" style="font-size: 2rem; cursor: pointer;"></i>
          </div>

        </div>
      </div>
    </div>
  </div>
</div>


<div class="modal fade" id="errorModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-md">
    <div class="modal-content bg-danger">
      <div class="modal-body">
        <div class="row align-items-center">

          <div class="col-10">
            <h3 class="text-white">Ocorreu um erro</h3>
          </div>

          <div class="col text-right">
            <i class="mdi mdi-close-circle text-white" data-bs-dismiss="modal" aria-label="Close" style="font-size: 2rem; cursor: pointer;"></i>
          </div>

        </div>
      </div>
    </div>
  </div>
</div>

<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 style="font-size:large" class="modal-title" id="modalTitle">Modal title</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <b>
          <p style="font-size:large" id="modalBody">Modal body text goes here.</p>
        </b>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary" data-dismiss="modal">Fechar</button>
      </div>
    </div>
  </div>
</div>