@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>
                    <a href="/session/{{$sessionId}}/examen/resultat/{{$examenId}}/notes" class="breadcrumb">Notes</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="cin">CIN Etudiant</th>
            <th data-field="nom">Nom Etudiant</th>
            <th data-field="prenom">Prenom Etudiant</th>
            <th data-field="note">Note</th>
        </tr>
        </thead>

        <tbody>
        @foreach ($note_Examens as $note_Examen)
            <tr>
                <td>{{$note_Examen->CIN}}</td>
                <td>{{$note_Examen->nom}}</td>
                <td>{{$note_Examen->prenom}}</td>
                <td>
		@if($note_Examen->note >= 50)
			admis
		@else
			refusé
		@endif
		</td>
                <td>
            </tr>
        @endforeach
        </tbody>
    </table>
</div>
</div>
@stop
