<?php $page = "Message"; $action = "view"; ?>
<?php include "../../routes/message.php"; ?>
<?php include "../layout/header.php"; ?>
  <body>

    <?php include "../layout/navbar.php"; ?>

    <div class="container-fluid">
      <div class="row">
        <?php include "../layout/sidenav.php"; ?>
        
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
            <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
                <h1 class="h2"><?php echo $page; ?></h1>
            </div>
            <p>
                <h4> Subject: <?php echo $message->subject; ?> </h4>
                <hr>
                <strong> Sender: </strong> <?php echo $message->full_name; ?>
                <hr>
                <strong> Email: </strong> <?php echo $message->email; ?>
                <hr>
                <h5> Message </h5>
                <?php echo $message->message; ?>
                <hr>
            </p>
        </main>
      
      </div>
    </div>
    <?php include '../layout/delete.php'; ?>
  </body>
</html>