@extends('layouts.ecc.main')

@section('content')
<div class="row">
    <div class="col-md-12">
        <div class="card">
            <div class="content">
                <div class="row">
                    <div class="col-xs-11">
                        <p>{{$message->title}}<br><h5><small>par {{\App\User::find($message->user_id)->fullname()}}</small></h5></p>
                        <div style="height:21.5rem;overflow:hidden;">{!! $message->body !!}</div><br>
                    </div>
                </div>
                <div class="row text-center">
                <a class="btn btn-primary" href="/ecc/messages" role="button">Retour a la liste des messages</i></a>
                </div>
            </div>
        </div>
    </div>
</div>  
@endsection

@section('active_page')
    <?php $active_page = "message" ?>
@endsection