classes display fix
This commit is contained in:
parent
ab3778b238
commit
680753d7dc
@ -133,7 +133,7 @@
|
|||||||
@foreach ($attendances_list as $attendance)
|
@foreach ($attendances_list as $attendance)
|
||||||
<tr>
|
<tr>
|
||||||
<td> {{ App\Subject::find(App\Classes::find($attendance->classes_id)->subject_id)->name }},
|
<td> {{ App\Subject::find(App\Classes::find($attendance->classes_id)->subject_id)->name }},
|
||||||
{{ 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) }} </td>
|
{{ 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>
|
||||||
<td> {{ $attendance->student_id_number }} </td>
|
<td> {{ $attendance->student_id_number }} </td>
|
||||||
<td> {{ $attendance->student_name}}</td>
|
<td> {{ $attendance->student_name}}</td>
|
||||||
<td> {{ $attendance->student_surname}}</td>
|
<td> {{ $attendance->student_surname}}</td>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<select id="subject_id" class="form-control @error('subject_id') is-invalid @enderror" name="subject_id" required>
|
<select id="subject_id" class="form-control @error('subject_id') is-invalid @enderror" name="subject_id" required>
|
||||||
@foreach ($subjects as $subject)
|
@foreach ($subjects as $subject)
|
||||||
<option value="{{ $subject->id }}">{{ $subject->name }}, {{ $subject->weekday }} {{ $subject->time }}</option>
|
<option value="{{ $subject->id }}">{{ $subject->name }}, {{ $subject->weekday }} {{ $subject->time }}, sala {{ App\Room::find($subject->room_id)->name }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user