2019-12-20 14:09:16 +01:00
|
|
|
<table class="table table-striped table-borderless custom-table">
|
2019-12-14 22:03:41 +01:00
|
|
|
<tr class="thead-dark">
|
2019-12-14 23:14:52 +01:00
|
|
|
<th> Nazwa zajęć </th>
|
2019-12-14 22:03:41 +01:00
|
|
|
<th> Nr indeksu </th>
|
|
|
|
<th> Nazwisko </th>
|
2019-12-19 00:10:39 +01:00
|
|
|
<th> Imię </th>
|
2019-12-14 22:03:41 +01:00
|
|
|
<th> Nr miejsca </th>
|
|
|
|
@if(!$export == 1)
|
|
|
|
<th></th>
|
2019-12-19 00:10:39 +01:00
|
|
|
<th></th>
|
|
|
|
@else
|
|
|
|
<th> Notatka </th>
|
2019-12-14 22:03:41 +01:00
|
|
|
@endif
|
|
|
|
</tr>
|
|
|
|
@foreach ($attendances_list as $attendance)
|
|
|
|
<tr>
|
2019-12-14 23:14:52 +01:00
|
|
|
<td> {{ App\Subject::find(App\Classes::find($attendance->classes_id)->subject_id)->name }},
|
2019-12-14 22:03:41 +01:00
|
|
|
{{ App\Classes::find($attendance->classes_id)-> date }} {{ App\Subject::find(App\Classes::find($attendance->classes_id)->subject_id)->time }}, sala {{ App\Room::find(App\Subject::find(App\Classes::find($attendance->classes_id)->subject_id)->room_id)->name }} </td>
|
2019-12-14 23:14:52 +01:00
|
|
|
<td> {{ $attendance->student_id_number }} </td>
|
2019-12-14 22:03:41 +01:00
|
|
|
<td> {{ $attendance->student_surname}}</td>
|
2019-12-19 00:10:39 +01:00
|
|
|
<td> {{ $attendance->student_name}}</td>
|
2019-12-14 22:03:41 +01:00
|
|
|
<td> {{ $attendance->seat_number }} </td>
|
|
|
|
@if(!$export == 1)
|
2019-12-19 00:10:39 +01:00
|
|
|
@if(!$attendance->notes)
|
|
|
|
<td>
|
2019-12-20 14:09:16 +01:00
|
|
|
<button type="button" name="note-attendance-btn" class="btn btn-primary" data-toggle="modal" data-target="#noteModal-{{ $attendance->id }}" title="Dodaj notatkę"> <i class="fa fa-plus"></i> Dodaj notatkę </button>
|
2019-12-19 00:10:39 +01:00
|
|
|
</td>
|
|
|
|
@else
|
|
|
|
<td>
|
2019-12-20 14:09:16 +01:00
|
|
|
<button type="button" name="note-attendance-btn" class="btn btn-secondary" data-toggle="modal" data-target="#noteModal-{{ $attendance->id }}" title="Edytuj notatkę"> <i class="fa fa-pencil"></i> Edytuj notatkę </button>
|
2019-12-19 00:10:39 +01:00
|
|
|
</td>
|
|
|
|
@endif
|
2019-12-20 14:09:16 +01:00
|
|
|
<td>
|
2020-01-17 17:10:54 +01:00
|
|
|
<button type="button" name="delete-attendance-btnc" class="btn btn-danger" data-toggle="modal" data-target="#attendanceConfirmationModal-{{ $attendance->id }}" title="Usuń wpis"> <i class="fa fa-trash-o"></i> Usuń </button>
|
2019-12-20 14:09:16 +01:00
|
|
|
</td>
|
2019-12-19 00:10:39 +01:00
|
|
|
@else
|
|
|
|
<td>
|
|
|
|
{{ $attendance->notes }}
|
|
|
|
</td>
|
2019-12-14 22:03:41 +01:00
|
|
|
@endif
|
|
|
|
</tr>
|
2019-12-20 14:09:16 +01:00
|
|
|
@include('user.attendance_note', [$attendance])
|
|
|
|
@include('user.delete_confirmation_attendance', [$attendance])
|
2019-12-14 22:03:41 +01:00
|
|
|
@endforeach
|
|
|
|
</table>
|