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

Add new classes

@csrf
@error('subject_id') {{ $message }} @enderror
@error('date') {{ $message }} @enderror
@if ($classes->count() > 0)

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

@foreach ($classes_grouped as $classes_group_name => $classes_list) @if($classes_group_name) @if($grouped_by == 'subject_id')
{{ App\Subject::find($classes_group_name)->name }}, {{ App\Subject::find($classes_group_name)->type }}, {{ App\Subject::find($classes_group_name)->weekday }} {{ App\Subject::find($classes_group_name)->time }} ({{ $classes_list->count() }})
@else
{{ $classes_group_name }} ({{ $classes_list->count() }})
@endif @else
Other ({{ $classes_list->count() }})
@endif @foreach ($classes_list as $classes_item) @endforeach
Subject name Date
{{ App\Subject::find($classes_item->subject_id)->name }}, {{ App\Subject::find($classes_item->subject_id)->type }}, {{ App\Subject::find($classes_item->subject_id)->weekday }} {{ App\Subject::find($classes_item->subject_id)->time }} {{ $classes_item->date }} Rozpocznij zapisy Delete Edit
@endforeach @else

No classes yet.

@endif
@endsection