2019-12-20 14:09:16 +01:00
|
|
|
<table class="table table-borderless custom-table">
|
2019-12-14 22:03:41 +01:00
|
|
|
<tr class="thead-light">
|
|
|
|
<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>
|
2019-12-19 00:10:39 +01:00
|
|
|
@if(!$export == 1)
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
@else
|
|
|
|
<th> Notatka </th>
|
|
|
|
@endif
|
2019-12-14 22:03:41 +01:00
|
|
|
</tr>
|
|
|
|
@foreach ($attendances as $attendance)
|
|
|
|
<tr class="attendance-id" id="{{ $attendance->seat_number }}++{{ $attendance->student_name}}++{{ $attendance->student_surname}}">
|
|
|
|
<td> {{ $attendance->student_id_number }} </td>
|
|
|
|
<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>
|
2019-12-19 00:10:39 +01:00
|
|
|
@if(!$export == 1)
|
|
|
|
@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> <i class="fa fa-sticky-note"></i> </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> <i class="fa fa-sticky-note"></i> </button>
|
2019-12-19 00:10:39 +01:00
|
|
|
</td>
|
|
|
|
@endif
|
2019-12-20 14:09:16 +01:00
|
|
|
<td>
|
|
|
|
<button type="button" name="delete-attendance-btn" class="btn btn-danger" data-toggle="modal" data-target="#attendanceConfirmationModal-{{ $attendance->id }}" title="Usuń wpis"> <i class="fa fa-trash-o"></i></button>
|
|
|
|
</td>
|
2019-12-19 00:10:39 +01:00
|
|
|
@else
|
|
|
|
<td>
|
|
|
|
{{ $attendance->notes }}
|
|
|
|
</td>
|
|
|
|
@endif
|
2019-12-14 22:03:41 +01:00
|
|
|
</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>
|
|
|
|
|