@extends('home') @section('title') Mój Panel - Przedmioty @endsection @section('user_content')

Moje przedmioty: ({{ $subjects->count() }})

Dodaj nowy przedmiot
@csrf
@error('name') {{ $message }} @enderror
@error('weekday') {{ $message }} @enderror
@error('time') {{ $message }} @enderror
@error('room_id') {{ $message }} @enderror
@error('user_id') {{ $message }} @enderror
@if ($subjects->count() > 0)
@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
Inne ({{ $subjects_list->count() }})
@endif {{----}} @foreach ($subjects_list as $subject) {{----}} {{----}} @endforeach
Nazwa Type Dzień tygodnia Godzina Prowadzący Sala
{{ $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 }} Usuń --}} {{-- Edytuj --}} {{--
@endforeach
@else

Brak przedmiotów.

@endif
@endsection