classes display fix

This commit is contained in:
s416422 2019-12-09 12:25:32 +01:00
parent ab3778b238
commit 680753d7dc
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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>