38 lines
1.6 KiB
PHP
38 lines
1.6 KiB
PHP
@extends('home')
|
|
|
|
@section('title') Mój Panel - Zajęcia @endsection
|
|
|
|
@section('user_content')
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-12">
|
|
<div class="card-body">
|
|
<p> {{ App\Subject::find($classes->subject_id)->name }}, {{ $classes->date }} {{ App\Subject::find($classes->subject_id)->time }}</p>
|
|
@if(!$verified)
|
|
<p>
|
|
Wprowadź poniższy kod do programu:
|
|
</p>
|
|
<p> {{ $classes_code }}</p>
|
|
@else
|
|
<p> Połączono prawidłowo.</p>
|
|
<p> Zajęcia odbywają się w sali {{ $room }}.</p>
|
|
|
|
@if($attendances)
|
|
<p> Aktualna liczba studentów w sali: {{ $attendances->count() }}</p>
|
|
<br><br>
|
|
@foreach($attendances as $attendance)
|
|
<p> Student ID number: {{ $attendance->student_id_number }}</p>
|
|
<p> Student name: {{ $attendance->student_name }}</p>
|
|
<p> Student surname: {{ $attendance->student_surname }}</p>
|
|
<p> Seat number: {{ $attendance->seat_number }}</p>
|
|
<br><br>
|
|
@endforeach
|
|
@else
|
|
<p> Aktualna liczba studentów w sali: 0</p>
|
|
<br><br>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|