42 lines
1.8 KiB
PHP
42 lines
1.8 KiB
PHP
|
@extends('layouts.adminpanel')
|
||
|
|
||
|
@section('title') Admin Panel - Attendance @endsection
|
||
|
|
||
|
@section('admin_content')
|
||
|
<div class="container">
|
||
|
<div class="row justify-content-center">
|
||
|
<div class="col-md-8">
|
||
|
@if ($attendances->count() > 0)
|
||
|
<h5> All attendance: ({{ $attendances->count() }}) </h5>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>ID</th>
|
||
|
<th> Classes id </th>
|
||
|
<th> Student ID </th>
|
||
|
<th> Student name </th>
|
||
|
<th> Student surname </th>
|
||
|
<th> Seat number </th>
|
||
|
<th> Creation date </th>
|
||
|
</tr>
|
||
|
@foreach ($attendances as $attendance)
|
||
|
<tr>
|
||
|
<td> {{ $attendance->id }}</td>
|
||
|
<td> {{ $attendance->classes_id }} </td>
|
||
|
<td> {{ $attendance->student_id_number }} </td>
|
||
|
<td> {{ $attendance->student_name}}</td>
|
||
|
<td> {{ $attendance->student_surname}}</td>
|
||
|
<td> {{ $attendance->created_at }} </td>
|
||
|
<td>
|
||
|
<a href="{{ route('admin_delete_attendance', ['attendance_id' => $attendance->id]) }}" name="delete-attendance-btn"> Delete </a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
@endforeach
|
||
|
</table>
|
||
|
@else
|
||
|
<p> No attendance data yet. </p>
|
||
|
@endif
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
@endsection
|