<commit_before>@extends('layouts.dashboard')

@section('title')
<h1>
    Etudiants
    <small>Liste de tous les étudiants inscrits sur le site en tant que parrain, CE, orga, ...</small>
</h1>
@endsection

@section('content')

@include('display-errors')

<div class="box box-default">
    <div class="box-header with-border">
        <h3 class="box-title">Liste des étudiants</h3>
        <div class="pull-right">
            Filtres :
            <a class="btn btn-xs btn-danger{{ ($filter=='admin')?' active':'' }}" href="{{ route('dashboard.students.list', [ 'filter' => 'admin' ])}}">Admin</a>
            <a class="btn btn-xs btn-warning{{ ($filter=='orga')?' active':'' }}" href="{{ route('dashboard.students.list', [ 'filter' => 'orga' ])}}">Orga</a>
            <a class="btn btn-xs btn-success{{ ($filter=='referral')?' active':'' }}" href="{{ route('dashboard.students.list', [ 'filter' => 'referral' ])}}">Parrain</a>
            <a class="btn btn-xs btn-primary{{ ($filter=='ce')?' active':'' }}" href="{{ route('dashboard.students.list', [ 'filter' => 'ce' ])}}">CE</a>
            <a class="btn btn-xs btn-info{{ ($filter=='volunteer')?' active':'' }}" href="{{ route('dashboard.students.list', [ 'filter' => 'volunteer' ])}}">Bénévole</a>
            <a class="btn btn-xs btn-default{{ ($filter=='')?' active':'' }}" href="{{ route('dashboard.students.list')}}">Aucun</a>
        </div>
    </div>
    <div class="box-body table-responsive no-padding">
        <table class="table table-hover trombi">
            <tbody>
                <tr>
                    <th>Photo</th>
                    <th>N° étu</th>
                    <th>Nom complet</th>
                    <th>Email</th>
                    <th>Téléphone</th>
                    <th>Semestre</th>
                    <th>Labels</th>
                    <th>Actions</th>
                </tr>
                @foreach ($students as $referral)
                    <tr>
                        <td><a href="{{ @asset('/uploads/students-trombi/'.$referral->student_id.'.jpg') }}"><img src="{{ @asset('/uploads/students-trombi/'.$referral->student_id.'.jpg') }}" alt="Photo"/></a></td>
                        <td>{{ $referral->student_id }}</td>
                        <td>{{{ $referral->first_name . ' ' . $referral->last_name }}}</td>
                        <td>{{{ $referral->email }}}</td>
                        <td>{{{ $referral->phone }}}</td>
                        <td>{{{ $referral->branch.$referral->level }}}</td>
                        <td>
                            @if ($referral->isAdmin())
                                <span class="label label-danger">Admin</span>
                            @endif
                            @if ($referral->referral)
                                <span class="label label-success">Parrain</span>
                            @endif
                            @if ($referral->ce)
                                <span class="label label-primary">CE</span>
                            @endif
                            @if ($referral->volunteer)
                                <span class="label label-info">Bénévole</span>
                            @endif
                            @if ($referral->orga)
                                <span class="label label-warning">Orga</span>
                            @endif
                        </td>
                        <td>
                            <!-- <a class="btn btn-xs btn-warning" href="{{ route('dashboard.students.list')}}">Modifier</a> -->
                        </td><commit_msg>Copy-past variable name error on student list<commit_after>@extends('layouts.dashboard')

@section('title')
<h1>
    Etudiants
    <small>Liste de tous les étudiants inscrits sur le site en tant que parrain, CE, orga, ...</small>
</h1>
@endsection

@section('content')

@include('display-errors')

<div class="box box-default">
    <div class="box-header with-border">
        <h3 class="box-title">Liste des étudiants</h3>
        <div class="pull-right">
            Filtres :
            <a class="btn btn-xs btn-danger{{ ($filter=='admin')?' active':'' }}" href="{{ route('dashboard.students.list', [ 'filter' => 'admin' ])}}">Admin</a>
            <a class="btn btn-xs btn-warning{{ ($filter=='orga')?' active':'' }}" href="{{ route('dashboard.students.list', [ 'filter' => 'orga' ])}}">Orga</a>
            <a class="btn btn-xs btn-success{{ ($filter=='referral')?' active':'' }}" href="{{ route('dashboard.students.list', [ 'filter' => 'referral' ])}}">Parrain</a>
            <a class="btn btn-xs btn-primary{{ ($filter=='ce')?' active':'' }}" href="{{ route('dashboard.students.list', [ 'filter' => 'ce' ])}}">CE</a>
            <a class="btn btn-xs btn-info{{ ($filter=='volunteer')?' active':'' }}" href="{{ route('dashboard.students.list', [ 'filter' => 'volunteer' ])}}">Bénévole</a>
            <a class="btn btn-xs btn-default{{ ($filter=='')?' active':'' }}" href="{{ route('dashboard.students.list')}}">Aucun</a>
        </div>
    </div>
    <div class="box-body table-responsive no-padding">
        <table class="table table-hover trombi">
            <tbody>
                <tr>
                    <th>Photo</th>
                    <th>N° étu</th>
                    <th>Nom complet</th>
                    <th>Email</th>
                    <th>Téléphone</th>
                    <th>Semestre</th>$
                    <th>Labels</th>
                    <th>Actions</th>
                </tr>
                @foreach ($students as $student)
                    <tr>
                        <td><a href="{{ @asset('/uploads/students-trombi/'.$student->student_id.'.jpg') }}"><img src="{{ @asset('/uploads/students-trombi/'.$student->student_id.'.jpg') }}" alt="Photo"/></a></td>
                        <td>{{ $student->student_id }}</td>
                        <td>{{{ $student->first_name . ' ' . $student->last_name }}}</td>
                        <td>{{{ $student->email }}}</td>
                        <td>{{{ $student->phone }}}</td>
                        <td>{{{ $student->branch.$student->level }}}</td>
                        <td>
                            @if ($student->isAdmin())
                                <span class="label label-danger">Admin</span>
                            @endif
                            @if ($student->referral)
                                <span class="label label-success">Parrain</span>
                            @endif
                            @if ($student->ce)
                                <span class="label label-primary">CE</span>
                            @endif
                            @if ($student->volunteer)
                                <span class="label label-info">Bénévole</span>
                            @endif
                            @if ($student->orga)
                                <span class="label label-warning">Orga</span>
                            @endif
                        </td>
                        <td>
                            <!-- <a class="btn btn-xs btn-warning" href="{{ route('dashboard.students.list')}}">Modifier</a> -->
                        </td>
{'fraction_non_alphanumeric': 0.1932889628397116, 'fraction_numerical': 0.0011092623405435386, 'mean_word_length': 1.5326544943820224, 'pattern_counts': {'":': 0, '<': 157, '<?xml version=': 0, '>': 195, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '365183', 'n_tokens_mistral': 2117, 'n_tokens_neox': 2046, 'n_words': 387}