@extends('home') @section('title') My Panel - Subjects @endsection @section('user_content')

Add new subject

@csrf
@error('name') {{ $message }} @enderror
@error('type') {{ $message }} @enderror
@error('weekday') {{ $message }} @enderror
@error('time') {{ $message }} @enderror
@error('room_id') {{ $message }} @enderror
@error('user_id') {{ $message }} @enderror
@if ($subjects->count() > 0)

My all subjects: ({{ $subjects->count() }})

@foreach ($subjects_grouped as $subject_group_name => $subjects_list) @if($subject_group_name) @if($grouped_by == 'room_id')
{{ App\Room::find($subject_group_name)->name }} ({{ $subjects_list->count() }})
@else
{{ $subject_group_name }} ({{ $subjects_list->count() }})
@endif @else
Other ({{ $subjects_list->count() }})
@endif @foreach ($subjects_list as $subject) @endforeach
Name Type Day of the week Time Instructor Room
{{ $subject->name }} {{ $subject->type }} {{ $subject->weekday }} {{ $subject->time }} {{ App\User::find($subject->user_id)->name }} {{ App\User::find($subject->user_id)->surname }} {{ App\Room::find($subject->room_id)->name }} Delete Edit
@endforeach @else

No subjects yet.

@endif
@endsection