atcheck/resources/views/user/attendances_table_preview.blade.php

43 lines
1.7 KiB
PHP
Raw Normal View History

<table class="table subjects-table">
<tr class="thead-light">
<th> Nr indeksu </th>
<th> Nazwisko </th>
<th> Imię </th>
<th> Nr miejsca </th>
@if(!$export == 1)
<th></th>
<th></th>
@else
<th> Notatka </th>
@endif
</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>
<td> {{ $attendance->student_name}}</td>
<td> {{ $attendance->seat_number }} </td>
@if(!$export == 1)
<td>
<a href="{{ route('user_delete_attendance', [$attendance->id]) }}" name="delete-attendance-btn" class="btn btn-danger"> Usuń </a>
</td>
@if(!$attendance->notes)
<td>
<button type="button" name="note-attendance-btn" class="btn btn-info" data-toggle="modal" data-target="#noteModal-{{ $attendance->id }}"> Dodaj notatkę </button>
</td>
@else
<td>
<button type="button" name="note-attendance-btn" class="btn btn-info" data-toggle="modal" data-target="#noteModal-{{ $attendance->id }}"> Edytuj notatkę </button>
</td>
@endif
@include('user.attendance_note', [$attendance])
@else
<td>
{{ $attendance->notes }}
</td>
@endif
</tr>
@endforeach
</table>