<!--main content start-->
<section id="main-content">
    <section class="wrapper">
        <div class="row">
            <div class="col-sm-12">
                <section class="panel">
                    <header class="panel-heading">
                        <span class="tools pull-right">
                            <a href="javascript:;" class="fa fa-chevron-down"></a>
                        </span>
                    </header>
                    <div class="panel-body">
                        <address class="text-right">
                            <a href="<?= site_url('messages'); ?>" class="btn btn-sm btn-default"><i class="fa fa-arrow-circle-left"></i> Boite de réception</a>
                        </address>
                        <address>
                            <strong>De la part de: </strong>
                            <?= $message['contact']['name']; ?>
                            <br>
                            <strong>Email : </strong>
                            <?= mailto($message['contact']['email'], $message['contact']['email']); ?>
                            <br>
                            <strong>Téléphone : </strong>
                            <?= $message['contact']['phone']; ?>
                            <br>
                            <strong>Envoyé le: </strong>
                            <?= $message['sent']->format('d-m-Y à H:i:s'); ?>
                            <br><br>
                            <strong>Sujet: </strong>
                            <br>
                            <?= "<pre>" . $message['subject'] . "</pre>"; ?>
                            <strong>Message: </strong>
                            <br>
                            <?= "<pre>" . $message['content'] . "</pre>"; ?>
                        </address>
                    </div>
                </section>
            </div>
        </div>
    </section>
</section>