@foreach($students as $key=>$student) @endforeach
Cognome Nome Matricola E-Mail P
{{strtoupper($student->lastname)}} {{strtoupper($student->firstname)}} {{strtoupper($student->official_code)}} {{strtoupper($student->email)}} {!! isset($reservations[$student->user_id]) ? '*': ''!!}