@extends('template')

@section('nav')
    <ul id="dropdown1" class="dropdown-content" style="top : 20px">
        <li><a href="/auth/logout" class="logout">Logout</a></li>
    </ul>
    <div class="navbar-fixed">
        <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}}/station" class="breadcrumb">Station</a>
                    <a href="/session/{{$sessionId}}/examen/{{$examenId}}/station/{{$stationId}}" class="breadcrumb">Details</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')

    <h4 class="blue-text text-darken-2 center">{{$station->label}}</h4>

    <div class="card-panel hoverable">
        <span>Contexte : </span>
        <span>{{$contexte->nom}} ({{$contexte->code}})</span>
        <br>
        <span>Domaine : </span>
        <span>{{$domaine->nom}} ({{$domaine->code}})</span>
        <br>
        <span>Critere : </span>
        <span>{{$critere->nom}} ({{$critere->code}})</span>
        <br>
        <span>Systeme : </span>
        <span>{{$systeme->nom}} ({{$systeme->code}})</span>
    </div>
    <br>
    <div class="card-panel hoverable">
        <h5 class="center"><u>Situation Clinique :</u></h5>
        {{$station->situation_Clinique}}
    </div>
    <br>
    <div class="card-panel hoverable">
        <h5 class="center"><u>Instructions aux etudiants</u></h5>
        {{$station->instruction_Etudiant}}
    </div>
    <br>
    <div class="card-panel hoverable">
        <h5 class="center"><u>Items</u></h5>
        <table>
            <thead>
            <tr>
                <th data-field="id">Identifiant</th>
                <th data-field="nom">nom</th>
                <th data-field="valeur">valeur</th>
                <th data-field="prefix">competence</th>
            </tr>
            </thead>
            <tbody>
            @foreach ($items as $item)
                <tr>
                    <td><span>{{$item->id_Item}}</span></td>
                    <td><span>{{$item->label}}</span></td>
                    <td><span>{{$item->valeur}}</span></td>
                    <td><span>{{$item->prefix}}</span></td>
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>

@stop