@extends('template')

@section('nav')
    <div class="navbar-fixed">
        <nav>
            <div class="nav-wrapper">
                <div class="col s12">
                    <a href="/session/{{$sessionId}}/examen/resultat" class="breadcrumb">Resultat</a>
                    <ul id="nav-mobile" class="right hide-on-med-and-down">
                     <li><a href="/">Home</a></li>
                    </ul> 
                </div>
            </div>
        </nav>
    </div>
@endsection

@section('contenu')
    <div class="container">
        <div class="filter-ghost close"></div>
    <table class="striped centered">
        <thead>
        <tr>
            <th data-field="id">Identifiant</th>
            <th data-field="date">date</th>
            <th data-field="type">type</th>
            <th data-field="view_note_examen"></th>
        </tr>
        </thead>

        <tbody>
        @foreach ($examens as $examen)
            <tr>
                <td>{{$examen->id_Examen}}</td>
                <td>{{$examen->date}}</td>
                <td>{{$examen->nom}}</td>
                <td><a href="/session/{{$sessionId}}/examen/resultat/{{$examen->id_Examen}}/notes"
                       class="waves-effect waves-light btn">Afficher les notes</a></td>
            </tr>
        @endforeach
        </tbody>
    </table>
</div>

</div>
@stop