@extends('template')

@section('nav')
    <div class="navbar-fixed">
        <ul id="dropdown1" class="dropdown-content" style="top : 20px">
            <li><a href="/auth/logout" class="logout">Logout</a></li>
        </ul>
        <nav>
            <div class="nav-wrapper">
                <div class="col s12">
                    <a href="/session" class="breadcrumb">Session</a>
                    <a href="/session/{{$sessionId}}/examen" class="breadcrumb">Examen</a>
                    <a href="/session/{{$sessionId}}/examen/{{$examenId}}/inscrit" class="breadcrumb">Liste Inscrit</a>
                    <ul class="right hide-on-med-and-down">
                        <li><a class="dropdown-button" href="#!"
                               data-activates="dropdown1">{{ \Illuminate\Support\Facades\Auth::user()->login  }}<i
                                        class="material-icons right">more_vert</i></a></li>
                    </ul>
                </div>
            </div>
        </nav>
    </div>
@endsection

@section('contenu')

    <table class="striped centered">
        <thead>
        <tr>
            <th data-field="id">Identifiant</th>
            <th data-field="cin">CIN Etudiant</th>
            <th data-field="nom">Nom Etudiant</th>
            <th data-field="prenom">Prenom Etudiant</th>
            <th data-field="view_note_station"></th>
        </tr>
        </thead>

        <tbody>
        @foreach ($etudiants as $etudiant)
            <tr>
                <td>{{$etudiant->id_Etudiant}}</td>
                <td>{{$etudiant->CIN}}</td>
                <td>{{$etudiant->nom}}</td>
                <td>{{$etudiant->prenom}}</td>
            </tr>
        @endforeach
        </tbody>
    </table>

@stop